Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
Fix E721
  • Loading branch information
Smartappli authored Dec 1, 2024
1 parent 8ccba0b commit a305fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/syft/src/syft/client/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ def validate_callable_args_and_kwargs(
_check_type(value, t)
except ValueError:
# TODO: fix this properly
if not (t == type(Any)):
if not (t is type(Any)):
_type_str = getattr(t, "__name__", str(t))
raise SyftException(
public_message=f"`{key}` must be of type `{_type_str}` not `{type(value).__name__}`"
Expand Down

0 comments on commit a305fdb

Please sign in to comment.