mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-09 13:32:20 +08:00
reintroduce parent and get_parent_until for er.Array, because an array is a builtin. always.
This commit is contained in:
@@ -857,6 +857,13 @@ class Array(use_metaclass(cache.CachedMetaClass, pr.Base)):
|
||||
def get_contents(self):
|
||||
return self._array
|
||||
|
||||
@property
|
||||
def parent(self):
|
||||
return builtin.Builtin.scope
|
||||
|
||||
def get_parent_until(self):
|
||||
return builtin.Builtin.scope
|
||||
|
||||
def __getattr__(self, name):
|
||||
if name not in ['type', 'start_pos', 'get_only_subelement', 'parent',
|
||||
'get_parent_until']:
|
||||
|
||||
Reference in New Issue
Block a user