Make sure we use the right context in case of goto with decorators, fixes #1427
This commit is contained in:
1 parent
b8a1f6da55
commit
4ba3dc69b3
3 files changed
+15
-2
No files matched your search
@@ -165,7 +165,7 @@ class AbstractTreeName(AbstractNameDefinition):
|
||||
new_dotted.children[index - 1:] = []
|
||||
values = context.infer_node(new_dotted)
|
||||
return unite(
|
||||
value.goto(name, name_context=value.as_context())
|
||||
value.goto(name, name_context=context)
|
||||
for value in values
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user