Skip to content

Comments

[red-knot] Do not use explicit knot_extensions.Unknown declaration#15787

Merged
sharkdp merged 1 commit intomainfrom
david/use-implicit-unknown-declaration
Jan 28, 2025
Merged

[red-knot] Do not use explicit knot_extensions.Unknown declaration#15787
sharkdp merged 1 commit intomainfrom
david/use-implicit-unknown-declaration

Conversation

@sharkdp
Copy link
Contributor

@sharkdp sharkdp commented Jan 28, 2025

Summary

Do not use an explict knot_extensions.Unknown declaration, as per this comment. Instead, use an undefined name to achieve the same effect.

@sharkdp sharkdp added the ty Multi-file analysis & type inference label Jan 28, 2025

```bash
uv -q run crates/red_knot_python_semantic/mdtest.py
uv run crates/red_knot_python_semantic/mdtest.py
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drive-by fix, -q is not needed anymore to silence the "Reading inline script metadata from …" message since astral-sh/uv#10588

@sharkdp sharkdp merged commit ca53eef into main Jan 28, 2025
21 checks passed
@sharkdp sharkdp deleted the david/use-implicit-unknown-declaration branch January 28, 2025 16:18
dcreager added a commit that referenced this pull request Jan 29, 2025
* main:
  [red-knot] Extend instance-attribute tests (#15808)
  Fix formatter warning message for `flake8-quotes` option (#15788)
  [`flake8-bugbear`] Exempt `NewType` calls where the original type is immutable (`B008`) (#15765)
  Add missing config docstrings (#15803)
  [`refurb`] Do not emit diagnostic when loop variables are used outside loop body (`FURB122`) (#15757)
  [`ruff`] Check for shadowed `map` before suggesting fix (`RUF058`) (#15790)
  [red-knot] Do not use explicit `knot_extensions.Unknown` declaration (#15787)
  Preserve quotes in generated byte strings (#15778)
  [minor] Simplify some `ExprStringLiteral` creation logic (#15775)
  Preserve quote style in generated code (#15726)
  Rename internal helper functions (#15771)
  [`airflow`] Extend airflow context parameter check for `BaseOperator.execute` (`AIR302`) (#15713)
  Implement tab autocomplete for `ruff config` (#15603)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants