mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-16 02:27:06 +08:00
Use "namespace" as a Name.type
This commit is contained in:
@@ -68,7 +68,7 @@ from import_tree import inline_mod
|
||||
#? 11 error
|
||||
test(inline_mod)
|
||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
Cannot inline imports or modules
|
||||
Cannot inline imports, modules or namespaces
|
||||
# -------------------------------------------------- module-works
|
||||
from import_tree import inline_mod
|
||||
#? 22
|
||||
|
||||
@@ -55,7 +55,7 @@ def test_implicit_nested_namespace_package(Script):
|
||||
assert len(result) == 1
|
||||
|
||||
implicit_pkg, = Script(code, project=project).infer(column=10)
|
||||
assert implicit_pkg.type == 'module'
|
||||
assert implicit_pkg.type == 'namespace'
|
||||
assert implicit_pkg.module_path is None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user