synt.ty
¤
type_param
¤
TypeVar
¤
Bases: IntoCode
TypeVar
in type parameters.
Examples:
References
Source code in synt/ty/type_param.py
__init__
¤
|
Initialize a type variable.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
Identifier
|
The name of the type variable. |
required |
bound |
IntoExpression | None
|
The bound of the type variable. |
None
|
Source code in synt/ty/type_param.py
TypeVarTuple
¤
Bases: IntoCode
Type variable tuple.
Examples:
References
Source code in synt/ty/type_param.py
__init__
¤
|
Initialize a type variable tuple.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
Identifier
|
The name of the type variable tuple. |
required |
TypeParamSpec
¤
Bases: IntoCode
Type parameter spec.
Examples:
References
Source code in synt/ty/type_param.py
__init__
¤
|
Initialize a type parameter spec.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
Identifier
|
The name of the type parameter spec. |
required |