API reference
python:astx:astx.modules.NamespaceType
class NamespaceType
NamespaceType(namespace_key: str, *, namespace_kind: NamespaceKind = NamespaceKind.MODULE, display_name: str | None = None)
Source: packages/astx/src/astx/modules.py:29
Semantic-only namespace type.
Represent one imported namespace value during semantic analysis and lowering without modeling it as a user-defined runtime aggregate.
Attributes
-
namespace_key — Type: str
-
namespace_kind — Type: NamespaceKind
-
display_name — Type: str | None
Methods
-
__init__ — Initialize one namespace type.
-
__str__ — Render one namespace type as text.
-
get_struct — Build one repr structure for a namespace type.
Properties
- module_key — Return the legacy module-key alias for this namespace.