You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mypy doesn't catch inheritance of outer class #18393
Fixed in #22125. The semantic analyzer now reports an undefined-name error when a nested class directly inherits from its still-executing enclosing class, matching CPython's runtime NameError. The regression, self-check, lint, mypy-primer, and full CI matrix are green.
Activity
ahmedkhan1 commentedon Oct 6, 2026
Fixed in #22125. The semantic analyzer now reports an undefined-name error when a nested class directly inherits from its still-executing enclosing class, matching CPython's runtime NameError. The regression, self-check, lint, mypy-primer, and full CI matrix are green.