-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrongfalse-positivemypy gave an error on correct codemypy gave an error on correct codepriority-1-normaltopic-runtime-semanticsmypy doesn't model runtime semantics correctlymypy doesn't model runtime semantics correctly
Description
- Given Python file
test1.py
class A(object):
NAME = __qualname__
-
run mypy checking
mypy test1.py
-
BUG: mypy reports
not defined
test1.py:2: error: Name '__qualname__' is not defined
The Python interpreter runs the code without error.
__qualname__
has been available since Python 3.3.
Tested on Python 3.7.1, using mpypy 0.670.
simon-liebehenschel, pashatyl, NiklasRosenstein, joooeey, jsaxon-cars and 1 more
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongfalse-positivemypy gave an error on correct codemypy gave an error on correct codepriority-1-normaltopic-runtime-semanticsmypy doesn't model runtime semantics correctlymypy doesn't model runtime semantics correctly