Files
ecm_sync_system/sync_state_machine/engine/evaluator.py
T
strepsiades 4a9c444b10 first commit
2026-03-09 16:31:42 +08:00

11 lines
273 B
Python

from __future__ import annotations
from typing import Any, Mapping
def guard_matches(guard: Mapping[str, Any], context: Mapping[str, Any]) -> bool:
for key, expected in guard.items():
if context.get(key) != expected:
return False
return True