Closed
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.