API reference
python:arx:arx.parser.imports.ImportParserMixin
class ImportParserMixin
Source: packages/arx/src/arx/parser/imports.py:19
Import parser mixin.
Attributes
-
bin_op_precedence — Type: dict[str, int]
-
indent_level — Type: int
-
list_scopes — Type: list[set[str]]
-
known_class_names — Type: set[str]
-
imported_type_names — Type: set[str]
-
namespace_roots — Type: set[str]
-
builtin_type_bindings — Type: dict[str, astx.DataType]
-
tensor_scopes — Type: list[dict[str, TensorBinding | None]]
-
dataframe_scopes — Type: list[dict[str, DataFrameBinding | None]]
-
return_type_scopes — Type: list[astx.DataType]
-
template_type_scopes — Type: list[dict[str, astx.DataType]]
-
type_aliases — Type: dict[str, astx.DataType]
-
value_scopes — Type: list[set[str]]
-
tokens — Type: TokenList
Methods
-
_reject_public_builtin_import — Reject user-facing imports from the internal builtin namespace.
-
parse_grouped_import_names — Parse grouped named imports.
-
parse_import_alias — Parse one optional import alias.
-
parse_import_from_module_path — Parse one absolute or relative module path for from-imports.
-
parse_import_stmt — Parse one import statement.
-
parse_module_path — Parse one dotted module path.