|
| t.Any | as_const (self, t.Optional[EvalContext] eval_ctx=None) |
| |
| bool | can_assign (self) |
| |
|
None | __init__ (self, *t.Any fields, **t.Any attributes) |
| |
| t.Iterator[t.Tuple[str, t.Any]] | iter_fields (self, t.Optional[t.Container[str]] exclude=None, t.Optional[t.Container[str]] only=None) |
| |
| t.Iterator["Node"] | iter_child_nodes (self, t.Optional[t.Container[str]] exclude=None, t.Optional[t.Container[str]] only=None) |
| |
| t.Optional[_NodeBound] | find (self, t.Type[_NodeBound] node_type) |
| |
| t.Iterator[_NodeBound] | find_all (self, t.Union[t.Type[_NodeBound], t.Tuple[t.Type[_NodeBound],...]] node_type) |
| |
| "Node" | set_ctx (self, str ctx) |
| |
| "Node" | set_lineno (self, int lineno, bool override=False) |
| |
| "Node" | set_environment (self, "Environment" environment) |
| |
|
bool | __eq__ (self, t.Any other) |
| |
|
str | __repr__ (self) |
| |
|
str | dump (self) |
| |
|
| __new__ (mcs, name, bases, d) |
| |
|
| fields |
| |
|
tuple | fields = ("node", "name", "args", "kwargs", "dyn_args", "dyn_kwargs") |
| |
|
Expr | node |
| |
|
str | name |
| |
|
t | args .List[Expr] |
| |
|
t | kwargs .List[Pair] |
| |
|
t | dyn_args .Optional[Expr] |
| |
|
t | dyn_kwargs .Optional[Expr] |
| |
|
bool | abstract = True |
| |
|
bool | abstract = True |
| |
|
tuple | fields = () |
| |
|
tuple | attributes = ("lineno", "environment") |
| |
|
bool | abstract = True |
| |
|
int | lineno |
| |
|
t | environment .Optional["Environment"] |
| |
Apply a test to an expression. ``name`` is the name of the test,
the other field are the same as :class:`Call`.
.. versionchanged:: 3.0
``as_const`` shares the same logic for filters and tests. Tests
check for volatile, async, and ``@pass_context`` etc.
decorators.