Skip to content

Commit

Permalink
Update json_serde.py
Browse files Browse the repository at this point in the history
Fix E721
  • Loading branch information
Smartappli authored Dec 1, 2024
1 parent a305fdb commit 2c1cada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/syft/src/syft/serde/json_serde.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def _is_serializable_mapping(annotation: Any) -> bool:
- the key type is str
- the value type is serializable and not a Union
"""
if get_origin(annotation) != dict:
if get_origin(annotation) is not dict:
return False

args = get_args(annotation)
Expand Down

0 comments on commit 2c1cada

Please sign in to comment.