mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-15 20:52:35 +08:00
use correct parents
This commit is contained in:
1 parent
80cbed2f9f
commit
ddc5b248f1
1 file changed
+2
-2
+2
-2
@@ -175,10 +175,10 @@ class ParserNode(object):
|
||||
items = getattr(parser.module, c)
|
||||
if set_parent:
|
||||
for i in items:
|
||||
i.parent = scope
|
||||
i.parent = scope.use_as_parent
|
||||
try:
|
||||
for d in i.decorators:
|
||||
d.parent = scope
|
||||
d.parent = scope.use_as_parent
|
||||
except AttributeError:
|
||||
pass
|
||||
content += items
|
||||
|
||||
Reference in new issue
Block a user