[issue40595] AttributeError from type annotation

2020-05-11 Thread Taylor Robie
Taylor Robie added the comment: Ah, I see. If this is intended behavior (which is sounds like it is?) feel free to close. Thanks! -- ___ Python tracker <https://bugs.python.org/issue40

[issue40595] AttributeError from type annotation

2020-05-11 Thread Taylor Robie
New submission from Taylor Robie : Consider the following: ``` import re class MyClass(object): def re(self): pass def foo(self, m: re.Match): pass ``` Even though `re` and `MyClass.re` are distinct namespaces, the type annotation misses that fact (presumably there