class FuncDef(FuncItem, SymbolNode, Statement): (source)
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 |
mypy.nodes.FuncItem.__init__
Undocumented
Parameters | |
name:str | Undocumented |
arguments:List[ | Undocumented |
body:Block | Undocumented |
typ:Optional[ | Undocumented |
mypy.nodes.Node.accept
Undocumented
Parameters | |
visitor:StatementVisitor[ | Undocumented |
Returns | |
T | Undocumented |