API reference

python:astx:astx.packages.ImportFromExpr

class ImportFromExpr

ImportFromExpr(names: list[AliasExpr], module: str = '', level: int = 0, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)

Source: packages/astx/src/astx/packages.py:550

Represents a 'from ... import ...' operation as an expression.

Attributes

Methods

Attributes

Search documentation

Type to search.