1
0
forked from VimPlug/jedi

Remove is_package on contexts

This commit is contained in:
Dave Halter
2019-12-01 20:50:29 +01:00
parent 76e0e6a8c5
commit f43d144e23
4 changed files with 2 additions and 9 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ def _create(inference_state, access_handle, parent_context, *args):
file_io=file_io,
string_names=string_names,
code_lines=code_lines,
is_package=compiled_object.is_package,
is_package=compiled_object.is_package(),
).as_context()
if name is not None:
inference_state.module_cache.add(string_names, ValueSet([module_context]))
-1
View File
@@ -89,7 +89,6 @@ class CompiledObject(Value):
return None
return map(cast_path, paths)
@property
def is_package(self):
return self.py__path__() is not None