API reference
python:astx:astx.callables.CallableType
class CallableType
CallableType(parameter_types: tuple[DataType, ...] | None, return_type: DataType, loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/callables.py:214
The positional signature of a function value.
Attributes
-
kind — Kind of value or operation.; Type: ASTKind
-
parameter_types — Ordered parameter types or none for an ellipsis.; Type: tuple[DataType, ...] | None
-
return_type — The result type.; Type: DataType
-
loc — Type: SourceLocation
-
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__ — Construct a function type.
-
get_struct — Represent the ordered parameter types and result type.
Attributes
-
kind —