mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
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:
@@ -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 = '.'
|
||||
|
||||
Reference in New Issue
Block a user