class Decorator(SymbolNode, Statement): (source)
A decorated function.
A single Decorator object can include any number of function decorators.
Class Method | deserialize |
Undocumented |
Method | __init__ |
Undocumented |
Method | accept |
Undocumented |
Method | serialize |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Instance Variable | decorators |
Undocumented |
Instance Variable | func |
Undocumented |
Instance Variable | is_overload |
Undocumented |
Instance Variable | original_decorators |
Undocumented |
Instance Variable | var |
Undocumented |
Property | fullname |
Undocumented |
Property | info |
Undocumented |
Property | is_final |
Undocumented |
Property | name |
Undocumented |
Property | type |
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.Context.__init__
Undocumented
Parameters | |
func:FuncDef | Undocumented |
decorators:List[ | Undocumented |
var:Var | Undocumented |
mypy.nodes.Node.accept
Undocumented
Parameters | |
visitor:StatementVisitor[ | Undocumented |
Returns | |
T | Undocumented |