first commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user