Reference to runtime-evaluated-base-classes
in the same file don't work
#8250
Labels
bug
Something isn't working
For some reason,
semantic.resolve_call_path(map_subscript(base))
resolves toNone
when the reference is in the same file.ruff/crates/ruff_linter/src/rules/flake8_type_checking/helpers.rs
Lines 43 to 44 in f5e8507
In this example,
example1.MyBaseClass
is a runtime evaluated base class.example1.py
This triggers
TCH003
forSequence
.example2.py
This is
TCH
compliant.ruff /path/to/file.py --fix
), ideally including the--isolated
flag.ruff --select TCH example1.py example2.py
pyproject.toml
).ruff --version
).Main branch, currently 0.1.1.
The text was updated successfully, but these errors were encountered: