Fix the weird py__path__ behavior
This commit is contained in:
1 parent
592f3771fc
commit
2fb04db0ab
7 files changed
+49
-54
No files matched your search
@@ -277,7 +277,7 @@ def _create(inference_state, access_handle, parent_context, *args):
|
||||
file_io=file_io,
|
||||
string_names=string_names,
|
||||
code_lines=code_lines,
|
||||
is_package=hasattr(compiled_object, 'py__path__'),
|
||||
is_package=compiled_object.is_package,
|
||||
).as_context()
|
||||
if name is not None:
|
||||
inference_state.module_cache.add(string_names, ValueSet([module_context]))
|
||||
|
||||
Reference in new issue
Block a user