class OverloadedFuncDef(FuncBase, SymbolNode, Statement): (source)
A logical node representing all the variants of a multi-declaration function.
A multi-declaration function is often an @overload, but can also be a @property with a setter and a/or a deleter.
This node has no explicit representation in the source program. Overloaded variants must be consecutive in the source file.
Class Method | deserialize |
Undocumented |
Method | __init__ |
Undocumented |
Method | accept |
Undocumented |
Method | serialize |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Instance Variable | impl |
Undocumented |
Instance Variable | is_final |
Undocumented |
Instance Variable | items |
Undocumented |
Instance Variable | unanalyzed_items |
Undocumented |
Property | name |
Undocumented |
Inherited from FuncBase
:
Instance Variable | info |
Undocumented |
Instance Variable | is_class |
Undocumented |
Instance Variable | is_property |
Undocumented |
Instance Variable | is_static |
Undocumented |
Instance Variable | type |
Undocumented |
Instance Variable | unanalyzed_type |
Undocumented |
Property | fullname |
Undocumented |
Instance Variable | _fullname |
Undocumented |
Inherited from Node
(via FuncBase
):
Method | __str__ |
Undocumented |
Inherited from Context
(via FuncBase
, 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 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.SymbolNode.deserialize
Undocumented
Parameters | |
data:JsonDict | Undocumented |
Returns | |
OverloadedFuncDef | Undocumented |
mypy.nodes.Node.accept
Undocumented
Parameters | |
visitor:StatementVisitor[ | Undocumented |
Returns | |
T | Undocumented |