diff --git a/packages/syft/src/syft/service/request/request.py b/packages/syft/src/syft/service/request/request.py index ab07c7380f1..1e24569e683 100644 --- a/packages/syft/src/syft/service/request/request.py +++ b/packages/syft/src/syft/service/request/request.py @@ -974,7 +974,7 @@ def _deposit_result_l2( f"accept_by_depositing_result can only be run on {UserCodeStatusCollection} not " f"{user_code_status_change.linked_obj.object_type}" ) - if not type(user_code_status_change) == UserCodeStatusChange: + if not type(user_code_status_change) is UserCodeStatusChange: raise TypeError( f"accept_by_depositing_result can only be run on {UserCodeStatusChange} not " f"{type(user_code_status_change)}"