1
0
forked from VimPlug/jedi

Fix a small issue

This commit is contained in:
Dave Halter
2019-04-12 12:09:03 +02:00
parent 44639ee50e
commit 3ba3d72d6b
2 changed files with 3 additions and 2 deletions

View File

@@ -293,8 +293,8 @@ def goto_with_stubs_if_possible(name):
return [name]
stub_contexts = ContextSet([stub])
for name in qualified_names:
stub_contexts = stub_contexts.py__getattribute__(name)
for n in qualified_names:
stub_contexts = stub_contexts.py__getattribute__(n)
names = stub_contexts.py__getattribute__(name.string_name, is_goto=True)
return [
n

View File

@@ -197,6 +197,7 @@ def _assert_is_same(d1, d2):
'code', [
'import os; os.walk',
'from collections import Counter; Counter',
#'from collections import Counter; Counter.most_common',
])
def test_goto_stubs_on_itself(Script, code, type_):
"""