class documentation
class TempNode(Expression): (source)
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 |
Undocumented |
Instance Variable | type |
Undocumented |
Inherited from Node
(via Expression
):
Method | __str__ |
Undocumented |
Inherited from Context
(via Expression
, Node
):
Method | set |
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 |
Undocumented |
Instance Variable | end |
Undocumented |
def __init__(self, typ:
mypy.types.Type
, no_rhs: bool
= False, *, context: Context|None
= None):
(source)
¶
overrides
mypy.nodes.Context.__init__
Construct a dummy node; optionally borrow line/column from context object.