class documentation

class FuncDef(FuncItem, SymbolNode, Statement): (source)

View In Hierarchy

Function definition.

This is a non-lambda function defined using 'def'.

Class Method deserialize Undocumented
Method __init__ Undocumented
Method accept Undocumented
Method serialize Undocumented
Class Variable __slots__ Undocumented
Instance Variable is​_abstract Undocumented
Instance Variable is​_conditional Undocumented
Instance Variable is​_decorated Undocumented
Instance Variable is​_final Undocumented
Instance Variable original​_def Undocumented
Property name Undocumented
Instance Variable _name Undocumented

Inherited from FuncItem:

Method is​_dynamic Undocumented
Method max​_fixed​_argc Undocumented
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.
Class Variable __deletable__ Undocumented
Instance Variable arg​_kinds Undocumented
Instance Variable arg​_names Undocumented
Instance Variable arguments Undocumented
Instance Variable body Undocumented
Instance Variable expanded Undocumented
Instance Variable is​_async​_generator Undocumented
Instance Variable is​_awaitable​_coroutine Undocumented
Instance Variable is​_coroutine Undocumented
Instance Variable is​_generator Undocumented
Instance Variable is​_overload Undocumented
Instance Variable max​_pos Undocumented
Instance Variable min​_args Undocumented
Instance Variable type Undocumented
Instance Variable unanalyzed​_type Undocumented

Inherited from FuncBase (via FuncItem):

Instance Variable info Undocumented
Instance Variable is​_class Undocumented
Instance Variable is​_property Undocumented
Instance Variable is​_static Undocumented
Property fullname Undocumented
Instance Variable _fullname Undocumented

Inherited from Node (via FuncItem, FuncBase):

Method __str__ Undocumented

Inherited from Context (via FuncItem, FuncBase, Node):

Method get​_column Don't use. Use x.column.
Method get​_line Don't use. Use x.line.
Instance Variable column Undocumented
Instance Variable end​_line Undocumented
Instance Variable line Undocumented

Inherited from SymbolNode:

Property fullname Undocumented

Inherited from Node (via SymbolNode):

Method __str__ Undocumented

Inherited from Context (via SymbolNode, Node):

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

Inherited from Node (via Statement):

Method __str__ Undocumented

Inherited from Context (via Statement, Node):

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
FuncDefUndocumented
def __init__(self, name, arguments, body, typ=None): (source)

Undocumented

Parameters
name:strUndocumented
arguments:List[Argument]Undocumented
body:BlockUndocumented
typ:Optional[mypy.types.FunctionLike]Undocumented
def accept(self, visitor): (source)

Undocumented

Parameters
visitor:StatementVisitor[T]Undocumented
Returns
TUndocumented
def serialize(self): (source)

Undocumented

Returns
JsonDictUndocumented
__slots__: tuple[str, ...] = (source)

Undocumented

is_abstract: bool = (source)

Undocumented

is_conditional: bool = (source)

Undocumented

is_decorated: bool = (source)

Undocumented

is_final: bool = (source)

Undocumented

original_def: Union[None, FuncDef, Var, Decorator] = (source)

Undocumented

@property
name: str = (source)

Undocumented

_name = (source)

Undocumented