- Given Python file
test1.py
class A(object):
NAME = __qualname__
-
run mypy checking
-
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.
test1.pyrun mypy checking
BUG: mypy reports
not definedThe 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.