forked from VimPlug/jedi
Fix a small issue
This commit is contained in:
@@ -293,8 +293,8 @@ def goto_with_stubs_if_possible(name):
|
|||||||
return [name]
|
return [name]
|
||||||
|
|
||||||
stub_contexts = ContextSet([stub])
|
stub_contexts = ContextSet([stub])
|
||||||
for name in qualified_names:
|
for n in qualified_names:
|
||||||
stub_contexts = stub_contexts.py__getattribute__(name)
|
stub_contexts = stub_contexts.py__getattribute__(n)
|
||||||
names = stub_contexts.py__getattribute__(name.string_name, is_goto=True)
|
names = stub_contexts.py__getattribute__(name.string_name, is_goto=True)
|
||||||
return [
|
return [
|
||||||
n
|
n
|
||||||
|
|||||||
@@ -197,6 +197,7 @@ def _assert_is_same(d1, d2):
|
|||||||
'code', [
|
'code', [
|
||||||
'import os; os.walk',
|
'import os; os.walk',
|
||||||
'from collections import Counter; Counter',
|
'from collections import Counter; Counter',
|
||||||
|
#'from collections import Counter; Counter.most_common',
|
||||||
])
|
])
|
||||||
def test_goto_stubs_on_itself(Script, code, type_):
|
def test_goto_stubs_on_itself(Script, code, type_):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user