Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 28, 2025

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 red-knot Multi-file analysis & type inference label Jan 28, 2025
@@ -283,7 +283,7 @@ cargo test -p red_knot_python_semantic -- mdtest__
Alternatively, you can use the `mdtest.py` runner which has a watch mode that will re-run corresponding tests when Markdown files change, and recompile automatically when Rust code changes:

```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
red-knot Multi-file analysis & type inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants