[issue40595] AttributeError from type annotation
Eric V. Smith
report at bugs.python.org
Mon May 11 14:52:39 EDT 2020
Eric V. Smith <eric at trueblade.com> added the comment:
This is not an annotations-only issue. This is no different from:
import re
class MyClass(object):
def re(self):
pass
m = re.Match
Which gives the same error. It's being evaluated at class scope.
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40595>
_______________________________________
More information about the Python-bugs-list
mailing list