From 6e190911daa0241b9db8e8342d98c1515c2454cd Mon Sep 17 00:00:00 2001 From: vtexier <vit@free.fr> Date: Sun, 2 Jun 2019 19:49:25 +0200 Subject: [PATCH] [fix] Endpoint: replace NotImplementedError by NotImplemented in __eq__ --- duniterpy/api/endpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/duniterpy/api/endpoint.py b/duniterpy/api/endpoint.py index a3983cb2..0175abbe 100644 --- a/duniterpy/api/endpoint.py +++ b/duniterpy/api/endpoint.py @@ -54,7 +54,7 @@ class Endpoint: raise NotImplementedError("__str__ is not implemented") def __eq__(self, other: Any) -> bool: - raise NotImplementedError("__eq__ is not implemented") + return NotImplemented # required to type hint cls in classmethod -- GitLab