Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
-LAN-
2026-03-17 17:09:59 +08:00
parent 37041f3746
commit 3d0ec1fedb
17 changed files with 104 additions and 51 deletions

View File

@@ -207,13 +207,7 @@ class VariablePool(BaseModel):
return result
def flatten(self, *, unprefixed_node_id: str | None = None) -> Mapping[str, object]:
"""Return a selector-style snapshot of the entire variable pool.
Variables belonging to ``unprefixed_node_id`` keep their original names so callers
can expose the current node's values without duplicating its namespace. All other
entries are emitted as ``"<node_id>.<name>"`` to preserve their source prefix in a
single flat mapping.
"""
"""Return a selector-style snapshot of the entire variable pool."""
result: dict[str, object] = {}
for node_id, variables in self.variable_dictionary.items():