class documentation

class FunctionLike(ProperType): (source)

Known subclasses: mypy.types.CallableType, mypy.types.Overloaded

View In Hierarchy

Abstract base class for function types.
Method __init__ Undocumented
Method get​_name Undocumented
Method is​_type​_obj Undocumented
Method type​_object Undocumented
Method with​_name Undocumented
Class Variable __slots__ Undocumented
Instance Variable can​_be​_false Undocumented
Instance Variable fallback Undocumented
Property items Undocumented

Inherited from Type (via ProperType):

Class Method deserialize Undocumented
Method __repr__ Undocumented
Method accept Undocumented
Method can​_be​_false​_default Undocumented
Method can​_be​_true​_default Undocumented
Method serialize Undocumented
Instance Variable can​_be​_true Undocumented

Inherited from Context (via 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
def __init__(self, line=-1, column=-1): (source)

Undocumented

Parameters
line:intUndocumented
column:intUndocumented
@abstractmethod
def get_name(self): (source)

Undocumented

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

Undocumented

Returns
boolUndocumented
@abstractmethod
def type_object(self): (source)

Undocumented

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

Undocumented

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

Undocumented

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

Undocumented