Use "namespace" as a Name.type

This commit is contained in:
Dave Halter
2021-01-02 12:14:28 +01:00
parent 02d43caa5e
commit 2ec3d72151
8 changed files with 10 additions and 11 deletions

View File

@@ -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