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). This can be one of these forms * P (ParamSpecFlavor.BARE) * P.args (ParamSpecFlavor.ARGS) * P.kwargs (ParamSpecFLavor.KWARGS) 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 |
Undocumented |
Method | __eq__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | accept |
Undocumented |
Method | copy |
Undocumented |
Method | name |
Undocumented |
Method | serialize |
Undocumented |
Method | with |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Instance Variable | flavor |
Undocumented |
Instance Variable | prefix |
Undocumented |
Inherited from TypeVarLikeType
:
Instance Variable | fullname |
Undocumented |
Instance Variable | id |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | upper |
Undocumented |
Inherited from Type
(via TypeVarLikeType
, ProperType
):
Method | __repr__ |
Undocumented |
Method | can |
Undocumented |
Method | can |
Undocumented |
Method | can |
Undocumented |
Method | can |
Undocumented |
Method | is |
Undocumented |
Property | can |
Undocumented |
Property | can |
Undocumented |
Instance Variable | _can |
Undocumented |
Instance Variable | _can |
Undocumented |
Inherited from Context
(via TypeVarLikeType
, ProperType
, Type
):
Method | set |
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 |
Undocumented |
Instance Variable | end |
Undocumented |
Instance Variable | line |
Undocumented |
str
, fullname: str
, id: TypeVarId|int
, flavor: int
, upper_bound: Type
, *, line: int
= -1, column: int
= -1, prefix: Parameters|None
= None):
(source)
¶
mypy.types.TypeVarLikeType.__init__
Undocumented
Bogus[ TypeVarId|int]
= _dummy, flavor: int
= _dummy_int, prefix: Bogus[ Parameters]
= _dummy) -> ParamSpecType
:
(source)
¶
Undocumented