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 1211d73 commit 275f124Copy full SHA for 275f124
src/a2a/utils/proto_utils.py
@@ -57,7 +57,7 @@ def make_dict_serializable(value: Any) -> Any:
57
Returns:
58
A serializable value.
59
"""
60
- if isinstance(value, (str, int, float, bool)) or value is None:
+ if isinstance(value, str | int | float | bool) or value is None:
61
return value
62
if isinstance(value, dict):
63
return {k: make_dict_serializable(v) for k, v in value.items()}
0 commit comments