API reference
python:astx:astx.types.generic.TemplateTypeVar
class TemplateTypeVar
TemplateTypeVar(name: str, *, bound: astx.DataType)
Source: packages/astx/src/astx/types/generic.py:80
Semantic-only template type variable.
Represent one unresolved template type parameter inside function signatures or local declared types before specialization.
Attributes
-
name — Type: str
-
bound — Type: astx.DataType
Methods
-
__init__ — Initialize one template type variable.
-
__str__ — Render one template type variable as text.
-
get_struct — Build one repr structure for a template type variable.