-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Class scope name resolution issue #9991
Copy link
Copy link
Open
Labels
bugmypy got something wrongmypy got something wronggood-second-issuepriority-2-lowtopic-runtime-semanticsmypy doesn't model runtime semantics correctlymypy doesn't model runtime semantics correctlytopic-variable-scope
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wronggood-second-issuepriority-2-lowtopic-runtime-semanticsmypy doesn't model runtime semantics correctlymypy doesn't model runtime semantics correctlytopic-variable-scope
Example courtesy of @gvanrossum , based on https://twitter.com/gvanrossum/status/1354305179244392453
While Python's behaviour is surprising, mypy should match it.
I also found https://bugs.python.org/issue24129 interesting. Thanks, ilevkivskyi!