class documentation

class FuncBase(Node): (source)

Known subclasses: mypy.nodes.FuncItem, mypy.nodes.OverloadedFuncDef

View In Hierarchy

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
def __init__(self): (source)
__slots__: tuple[str, ...] = (source)
info = (source)

Undocumented

is_class: bool = (source)

Undocumented

is_final: bool = (source)

Undocumented

is_property: bool = (source)

Undocumented

is_static: bool = (source)

Undocumented

overridden in mypy.nodes.FuncItem

Undocumented

unanalyzed_type: Optional[mypy.types.ProperType] = (source)
overridden in mypy.nodes.FuncItem

Undocumented

@property
fullname: Bogus[str] = (source)

Undocumented

@property
@abstractmethod
name: str = (source)
_fullname = (source)

Undocumented