API reference
python:astx:astx.types.InferredType
class InferredType
InferredType()
Source: packages/astx/src/astx/types/base.py:31
Declared as: python:astx:astx.types.base.InferredType
Request one concrete declaration type from its initializer.
This source annotation is not a dynamic value type or a wildcard. Semantic analysis must resolve it before publishing storage or layout; retaining the marker permits independent reanalysis of the source AST.
Attributes
-
loc — Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
type_ — Type: ExprType
-
name — Type: str
-
_tmp_id — Type: int
Methods
- __init__ — Initialize an initializer-based inference request.