From 75ad37fb47fcae0a22f4631e2f773c55db1fe1d6 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:47:31 +0100 Subject: [PATCH] Update request.py Fix E721 --- packages/syft/src/syft/service/request/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)}"