class documentation

class Argument(Node): (source)

View In Hierarchy

A single argument in a FuncItem.
Method __init__ 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 __slots__ Undocumented
Instance Variable initializer Undocumented
Instance Variable kind Undocumented
Instance Variable pos​_only Undocumented
Instance Variable type​_annotation Undocumented
Instance Variable variable 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.
Instance Variable column Undocumented
Instance Variable end​_line Undocumented
Instance Variable line Undocumented
def __init__(self, variable, type_annotation, initializer, kind, pos_only=False): (source)

Undocumented

Parameters
variable:VarUndocumented
type​_annotation:Optional[mypy.types.Type]Undocumented
initializer:Optional[Expression]Undocumented
kind:ArgKindUndocumented
pos​_only:boolUndocumented
def set_line(self, target, column=None, end_line=None): (source)
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.
Parameters
target:Union[Context, int]Undocumented
column:Optional[int]Undocumented
end​_line:Optional[int]Undocumented
__slots__: tuple[str, ...] = (source)

Undocumented

initializer = (source)

Undocumented

kind = (source)

Undocumented

pos_only = (source)

Undocumented

type_annotation = (source)

Undocumented

variable = (source)

Undocumented