mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 23:34:45 +08:00
The import resolution for namespace packages was wrong
With this change we can now include all parents of the script, which will make relative imports always work. Now the whole meta_path is scanned and not just importlib's PathFinder. Fixes #1183.
This commit is contained in:
1
test/examples/namespace_package_relative_import/rel2.py
Normal file
1
test/examples/namespace_package_relative_import/rel2.py
Normal file
@@ -0,0 +1 @@
|
||||
name = 1
|
||||
Reference in New Issue
Block a user