mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
![]() ## Summary This is a new test case that I don't know how to handle yet. It leads to many false positives in `rich/tests/test_win32_console.py`, which does something like: ```py if sys.platform == "win32": from windows_only_module import some_symbol some_other_symbol = 1 def some_test_case(): use(some_symbol) # Red Knot: unresolved-reference use(some_other_symbol) # Red Knot: unresolved-reference ``` Also adds a test for using unreachable symbols in type annotations or as class bases. |
||
---|---|---|
.. | ||
resources | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml | ||
mdtest.py | ||
mdtest.py.lock |