mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-26 01:27:16 +08:00
Make is_package a function and call it consistently
This commit is contained in:
@@ -89,6 +89,7 @@ class CompiledObject(Value):
|
||||
return None
|
||||
return map(cast_path, paths)
|
||||
|
||||
@property
|
||||
def is_package(self):
|
||||
return self.py__path__() is not None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user