|
|
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 |
| |
A node that represents the from import tag. It's important to not
pass unsafe names to the name attribute. The compiler translates the
attribute lookups directly into getattr calls and does *not* use the
subscript callback of the interface. As exported variables may not
start with double underscores (which the parser asserts) this is not a
problem for regular Jinja code, but if this node is used in an extension
extra care must be taken.
The list of names may contain tuples if aliases are wanted.