From 18b2dd81096f388f7ed86dba911b7819cd8662a3 Mon Sep 17 00:00:00 2001 From: fazledyn-or Date: Wed, 6 Dec 2023 13:59:37 +0600 Subject: [PATCH] Replaced `NotImplementedError` with `NotImplemented` Signed-off-by: fazledyn-or --- cmk/ec/forward.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmk/ec/forward.py b/cmk/ec/forward.py index 438146b5fcc..a6ac9138529 100644 --- a/cmk/ec/forward.py +++ b/cmk/ec/forward.py @@ -75,7 +75,7 @@ def __hash__(self) -> int: def __eq__(self, o: object) -> bool: if not isinstance(o, StructuredDataName): - raise NotImplementedError + return NotImplemented return self.name == o.name @@ -99,7 +99,7 @@ def __hash__(self) -> int: def __eq__(self, o: object) -> bool: if not isinstance(o, StructuredDataID): - raise NotImplementedError + return NotImplemented return self.id == o.id @staticmethod