Fix bug in redeclarator if type hint like Tuple[int, ...] is used

* The ... confused the declaration process and so an empty identifier got
  registered, which then broke things later.
This commit is contained in:
baldurk
2020-12-14 10:47:17 +00:00
parent e4e2d781bb
commit fede056ef7
@@ -227,6 +227,9 @@ class ModuleRedeclarator(object):
def process_import_type(self, used_imports, p_modname, classname, import_type):
parent = None
if import_type == '...':
return
if import_type in dir(sys.modules[p_modname]):
if import_type != classname:
parent = '.'