mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-20 15:29:41 +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):
|
def get_contents(self):
|
||||||
return self._array
|
return self._array
|
||||||
|
|
||||||
|
@property
|
||||||
|
def parent(self):
|
||||||
|
return builtin.Builtin.scope
|
||||||
|
|
||||||
|
def get_parent_until(self):
|
||||||
|
return builtin.Builtin.scope
|
||||||
|
|
||||||
def __getattr__(self, name):
|
def __getattr__(self, name):
|
||||||
if name not in ['type', 'start_pos', 'get_only_subelement', 'parent',
|
if name not in ['type', 'start_pos', 'get_only_subelement', 'parent',
|
||||||
'get_parent_until']:
|
'get_parent_until']:
|
||||||
|
|||||||
Reference in New Issue
Block a user