mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 15:51:51 +08:00
goto: module lookup now don't includes star imports
This commit is contained in:
@@ -263,9 +263,8 @@ def goto(source, line, column, source_path):
|
|||||||
definitions = []
|
definitions = []
|
||||||
for s in scopes:
|
for s in scopes:
|
||||||
if isinstance(s, imports.ImportPath):
|
if isinstance(s, imports.ImportPath):
|
||||||
definitions += s.follow()
|
s = s.follow()[0]
|
||||||
else:
|
definitions.append(s)
|
||||||
definitions.append(s)
|
|
||||||
else:
|
else:
|
||||||
names = []
|
names = []
|
||||||
#print 's', scopes
|
#print 's', scopes
|
||||||
|
|||||||
4
test/completion/thirdparty/pylab.py
vendored
4
test/completion/thirdparty/pylab.py
vendored
@@ -2,9 +2,9 @@ import pylab
|
|||||||
pylab.
|
pylab.
|
||||||
|
|
||||||
# two gotos
|
# two gotos
|
||||||
#! ['numpy']
|
#! ['module /usr/lib/python2.7/dist-packages/numpy/__init__.py']
|
||||||
import numpy
|
import numpy
|
||||||
#! ['random']
|
#! ['module random']
|
||||||
import numpy.random
|
import numpy.random
|
||||||
|
|
||||||
#? ['array2string']
|
#? ['array2string']
|
||||||
|
|||||||
Reference in New Issue
Block a user