class documentation

class TempNode(Expression): (source)

View In Hierarchy

Temporary dummy node used during type checking.

This node is not present in the original program; it is just an artifact of the type checker implementation. It only represents an opaque node with some fixed type.

Method __init__ Construct a dummy node; optionally borrow line/column from context object.
Method __repr__ Undocumented
Method accept Undocumented
Class Variable __slots__ Undocumented
Instance Variable column Undocumented
Instance Variable line Undocumented
Instance Variable no​_rhs Undocumented
Instance Variable type Undocumented

Inherited from Node (via Expression):

Method __str__ Undocumented

Inherited from Context (via Expression, 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 end​_line Undocumented
def __init__(self, typ, no_rhs=False, *, context=None): (source)
Construct a dummy node; optionally borrow line/column from context object.
Parameters
typ:mypy.types.TypeUndocumented
no​_rhs:boolUndocumented
context:Optional[Context]Undocumented
def __repr__(self): (source)

Undocumented

Returns
strUndocumented
def accept(self, visitor): (source)

Undocumented

Parameters
visitor:ExpressionVisitor[T]Undocumented
Returns
TUndocumented
__slots__: tuple[str, ...] = (source)

Undocumented

column = (source)

Undocumented

line = (source)

Undocumented

no_rhs = (source)

Undocumented

type = (source)

Undocumented