class ParamSpecType(TypeVarLikeType): (source)
Type that refers to a ParamSpec.
A ParamSpec is a type variable that represents the parameter types, names and kinds of a callable (i.e., the signature without the return type).
The upper_bound is really used as a fallback type -- it's shared with TypeVarType for simplicity. It can't be specified by the user and the value is directly derived from the flavor (currently always just 'object').
| Class Method | deserialize |
Undocumented |
| Static Method | new_unification_variable |
Undocumented |
| Method | __eq__ |
Undocumented |
| Method | __hash__ |
Undocumented |
| Method | __init__ |
Undocumented |
| Method | accept |
Undocumented |
| Method | name_with_suffix |
Undocumented |
| Method | serialize |
Undocumented |
| Method | with_flavor |
Undocumented |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | flavor |
Undocumented |
Inherited from TypeVarLikeType:
| Instance Variable | fullname |
Undocumented |
| Instance Variable | id |
Undocumented |
| Instance Variable | name |
Undocumented |
| Instance Variable | upper_bound |
Undocumented |
Inherited from Type (via TypeVarLikeType, ProperType):
| Method | __repr__ |
Undocumented |
| Method | can_be_false_default |
Undocumented |
| Method | can_be_true_default |
Undocumented |
| Instance Variable | can_be_false |
Undocumented |
| Instance Variable | can_be_true |
Undocumented |
Inherited from Context (via TypeVarLikeType, ProperType, Type):
| Method | get_column |
Don't use. Use x.column. |
| Method | get_line |
Don't use. Use x.line. |
| Method | set_line |
If target is a node, pull line (and column) information into this node. If column is specified, this will override any column information coming from a node. |
| Instance Variable | column |
Undocumented |
| Instance Variable | end_line |
Undocumented |
| Instance Variable | line |
Undocumented |
mypy.types.TypeVarLikeType.deserializeUndocumented
| Parameters | |
data:JsonDict | Undocumented |
| Returns | |
ParamSpecType | Undocumented |
mypy.types.Type.acceptUndocumented
| Parameters | |
visitor:TypeVisitor[ | Undocumented |
| Returns | |
T | Undocumented |