ruff/crates/ruff_linter
Charlie Marsh 4d2de898e3
Decrease PEP 593 error to a debug warning (#7745)
## 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]
```
2023-10-01 14:40:36 -04:00
..
resources/test Skip all bracketed expressions when locating comparison ops (#7740) 2023-10-01 14:57:40 +00:00
src Decrease PEP 593 error to a debug warning (#7745) 2023-10-01 14:40:36 -04:00
Cargo.toml Improve performance of commented-out-code (~50-80%) (#7706) 2023-09-29 20:13:12 +00:00