diff options
Diffstat (limited to 'astroid/builder.py')
-rw-r--r-- | astroid/builder.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/astroid/builder.py b/astroid/builder.py index 957b20ac..dc1738ef 100644 --- a/astroid/builder.py +++ b/astroid/builder.py @@ -281,8 +281,9 @@ class AstroidBuilder(raw_building.InspectBuilder): def build_namespace_package_module(name: str, path: Sequence[str]) -> nodes.Module: - # TODO: Typing: Remove the cast to list and just update typing to accept Sequence - return nodes.Module(name, path=list(path), package=True) + module = nodes.Module(name, path=path, package=True) + module.postinit(body=[], doc_node=None) + return module def parse( |