class FuncBase(Node): (source)
Known subclasses: mypy.nodes.FuncItem, mypy.nodes.OverloadedFuncDef
Abstract base class for function-like nodes.
N.B: Although this has SymbolNode subclasses (FuncDef, OverloadedFuncDef), avoid calling isinstance(..., FuncBase) on something that is typed as SymbolNode. This is to work around mypy bug #3603, in which mypy doesn't understand multiple inheritance very well, and will assume that a SymbolNode cannot be a FuncBase.
Instead, test against SYMBOL_FUNCBASE_TYPES, which enumerates SymbolNode subclasses that are also FuncBase subclasses.
| Method | __init__ |
Undocumented |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | info |
Undocumented |
| Instance Variable | is_class |
Undocumented |
| Instance Variable | is_final |
Undocumented |
| Instance Variable | is_property |
Undocumented |
| Instance Variable | is_static |
Undocumented |
| Instance Variable | type |
Undocumented |
| Instance Variable | unanalyzed_type |
Undocumented |
| Property | fullname |
Undocumented |
| Property | name |
Undocumented |
| Instance Variable | _fullname |
Undocumented |
Inherited from Node:
| Method | __str__ |
Undocumented |
| Method | accept |
Undocumented |
Inherited from Context (via 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.Context.__init__mypy.nodes.FuncItem, mypy.nodes.OverloadedFuncDefUndocumented
mypy.nodes.Node.__slots__mypy.nodes.FuncItem, mypy.nodes.OverloadedFuncDefUndocumented