mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-30 16:54:20 +08:00
Make it possible to use goto_definition on "broken" imports
This commit is contained in:
@@ -120,6 +120,8 @@ import_tree.a
|
||||
|
||||
#! ['module mod1']
|
||||
import import_tree.mod1
|
||||
#! ['module mod1']
|
||||
from import_tree.mod1
|
||||
#! ['a = 1']
|
||||
import_tree.mod1.a
|
||||
|
||||
|
||||
@@ -114,6 +114,12 @@ def as_imports():
|
||||
bar.a
|
||||
|
||||
|
||||
def broken_import():
|
||||
import import_tree.mod1
|
||||
#? import_tree.mod1
|
||||
from import_tree.mod1
|
||||
|
||||
|
||||
def test_import_priorities():
|
||||
"""
|
||||
It's possible to overwrite import paths in an ``__init__.py`` file, by
|
||||
|
||||
Reference in New Issue
Block a user