From 8823b6e1b1c4affec2cddd79b1be35a4cbf61b95 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:46:20 +0100 Subject: [PATCH] Update policy.py Fix E721 --- packages/syft/src/syft/service/policy/policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/src/syft/service/policy/policy.py b/packages/syft/src/syft/service/policy/policy.py index f89493c4c0b..62554639067 100644 --- a/packages/syft/src/syft/service/policy/policy.py +++ b/packages/syft/src/syft/service/policy/policy.py @@ -342,7 +342,7 @@ def is_owned( def is_met( self, context: AuthedServiceContext, action_object: ActionObject ) -> bool: - return type(action_object.syft_action_data) == self.type and self.is_owned( + return type(action_object.syft_action_data) is self.type and self.is_owned( context, action_object )