class Overloaded(FunctionLike): (source)
Overloaded function type T1, ... Tn, where each Ti is CallableType.
The variant to call is chosen based on static argument types. Overloaded function types can only be defined in stub files, and thus there is no explicit runtime dispatch implementation.
Class Method | deserialize |
Undocumented |
Method | __eq__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | accept |
Undocumented |
Method | get_name |
Undocumented |
Method | is_type_obj |
Undocumented |
Method | name |
Undocumented |
Method | serialize |
Undocumented |
Method | type_object |
Undocumented |
Method | with_name |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Instance Variable | fallback |
Undocumented |
Property | items |
Undocumented |
Instance Variable | _items |
Undocumented |
Inherited from FunctionLike
:
Instance Variable | can_be_false |
Undocumented |
Inherited from Type
(via FunctionLike
, ProperType
):
Method | __repr__ |
Undocumented |
Method | can_be_false_default |
Undocumented |
Method | can_be_true_default |
Undocumented |
Instance Variable | can_be_true |
Undocumented |
Inherited from Context
(via FunctionLike
, 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.Type.deserialize
Undocumented
Parameters | |
data:JsonDict | Undocumented |
Returns | |
Overloaded | Undocumented |
mypy.types.FunctionLike.__init__
Undocumented
Parameters | |
items:List[ | Undocumented |
mypy.types.Type.accept
Undocumented
Parameters | |
visitor:TypeVisitor[ | Undocumented |
Returns | |
T | Undocumented |
mypy.types.FunctionLike.with_name
Undocumented
Parameters | |
name:str | Undocumented |
Returns | |
Overloaded | Undocumented |