class documentation

class Overloaded(FunctionLike): (source)

View In Hierarchy

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
@classmethod
def deserialize(cls, data): (source)

Undocumented

Parameters
data:JsonDictUndocumented
Returns
OverloadedUndocumented
def __eq__(self, other): (source)

Undocumented

Parameters
other:objectUndocumented
Returns
boolUndocumented
def __hash__(self): (source)

Undocumented

Returns
intUndocumented
def __init__(self, items): (source)

Undocumented

Parameters
items:List[CallableType]Undocumented
def accept(self, visitor): (source)

Undocumented

Parameters
visitor:TypeVisitor[T]Undocumented
Returns
TUndocumented
def get_name(self): (source)

Undocumented

Returns
Optional[str]Undocumented
def is_type_obj(self): (source)

Undocumented

Returns
boolUndocumented
def name(self): (source)

Undocumented

Returns
Optional[str]Undocumented
def serialize(self): (source)

Undocumented

Returns
JsonDictUndocumented
def type_object(self): (source)

Undocumented

Returns
mypy.nodes.TypeInfoUndocumented
def with_name(self, name): (source)

Undocumented

Parameters
name:strUndocumented
Returns
OverloadedUndocumented
__slots__: tuple[str, ...] = (source)

Undocumented

fallback = (source)

Undocumented

@property
items: List[CallableType] = (source)

Undocumented

_items = (source)

Undocumented