mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-22 16:22:10 +00:00
![]() ## Summary There's no way for users to fix this warning if they're intentionally using an "invalid" PEP 593 annotation, as is the case in CPython. This is a symptom of having warnings that aren't themselves diagnostics. If we want this to be user-facing, we should add a diagnostic for it! ## Test Plan Ran `cargo run -p ruff_cli -- check foo.py -n` on: ```python from typing import Annotated Annotated[int] ``` |
||
---|---|---|
.. | ||
resources/test | ||
src | ||
Cargo.toml |