mirror of
https://github.com/davidhalter/jedi.git
synced 2026-03-06 01:34:17 +08:00
Refactor references: Matching more names that might be related
Fixes davidhalter/jedi-vim#900. See also davidhalter/jedi-vim#552.
This commit is contained in:
@@ -564,7 +564,7 @@ class ImportName(AbstractNameDefinition):
|
||||
return m
|
||||
# It's almost always possible to find the import or to not find it. The
|
||||
# importing returns only one value, pretty much always.
|
||||
return next(iter(import_values))
|
||||
return next(iter(import_values)).as_context()
|
||||
|
||||
@memoize_method
|
||||
def infer(self):
|
||||
|
||||
Reference in New Issue
Block a user