mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-17 22:14:12 +08:00
introduce an is_scope function to make it easier to work with scopes
This commit is contained in:
@@ -169,6 +169,9 @@ class CompiledObject(Base):
|
||||
faked_subscopes.append(f)
|
||||
return faked_subscopes
|
||||
|
||||
def is_scope(self):
|
||||
return True
|
||||
|
||||
def get_self_attributes(self):
|
||||
return [] # Instance compatibility
|
||||
|
||||
|
||||
Reference in New Issue
Block a user