We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a74b07b commit a5795f1Copy full SHA for a5795f1
guardrails/telemetry/common.py
@@ -186,7 +186,7 @@ def recursive_key_operation(
186
data: Dict[str, Any] | List[Any] | str,
187
operation: Callable[[str], str],
188
keys_to_match: List[str] = ["key", "token"],
189
-) -> Dict[str, Any] | List[Any] | str:
+) -> Optional[Union[Dict[str, Any], List[Any], str]]:
190
"""Recursively checks if any key in the dictionary or JSON object is
191
present in keys_to_match and applies the operation on the corresponding
192
value.
0 commit comments