Functions
context_paths_for
1
frozenset[str]
▼
Return the template context paths affected by this node type.
Uses the node's …
context_paths_for
1
frozenset[str]
▼
def context_paths_for(node: Node) -> frozenset[str]
Return the template context paths affected by this node type.
Uses the node's class name to look up affected paths. Returns the conservative fallback for unknown node types.
Parameters
| Name | Type | Description |
|---|---|---|
node |
Node |
Any Patitas AST node. |
Returns
frozenset[str]