diff --git a/swh/core/api/__init__.py b/swh/core/api/__init__.py --- a/swh/core/api/__init__.py +++ b/swh/core/api/__init__.py @@ -131,6 +131,10 @@ @staticmethod def __add_endpoint(meth_name, meth, attributes): + if meth_name in attributes: + # Overridden by the class + return + wrapped_meth = inspect.unwrap(meth) @functools.wraps(meth) # Copy signature and doc