Fix final gradual typing related issues

This commit is contained in:
Dave Halter committed 2019-08-19 19:43:45 +02:00
1 parent b19ba12566
commit caee8e9952
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -536,7 +536,7 @@ def get_module_contexts_containing_name(inference_state, module_contexts, name):
m = _load_module_from_path(inference_state, new_file_io, base_names)
if isinstance(m, compiled.CompiledObject):
return None
return m
return m.as_context()
# skip non python modules
used_mod_paths = set()