Incomplete resolving of subclass chains in runtime-evaluated-base-classes
#7893
Labels
bug
Something isn't working
runtime-evaluated-base-classes
#7893
Extracted from #7866 (comment)
Ruff doesn't reliably detect the base class (even within the same file).
given this example
Ruff evaluates the following classes and their bases (I simply placed some log statements in this function)
ruff/crates/ruff_linter/src/rules/flake8_type_checking/helpers.rs
Line 42 in a1509df
notice the absence of
Empty
and howAbstract
then doesn't get detected asBaseModel
.Therefore,
flake8-type-checking
rules often result in false positives as it's unable to correctly resolve the base class.The text was updated successfully, but these errors were encountered: