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 @@ -329,14 +329,19 @@ return encode_data_server(obj_meth(**decode_request(request))) -SWHServerAPIApp = deprecated( - version='0.0.64', - reason='Use the RPCServerApp instead')(RPCServerApp) +@deprecated(version='0.0.64', + reason='Use the RPCServerApp instead') +class SWHServerAPIApp(RPCServerApp): + pass + -MetaSWHRemoteAPI = deprecated( - version='0.0.64', - reason='Use the MetaRPCClient instead')(MetaRPCClient) +@deprecated(version='0.0.64', + reason='Use the MetaRPCClient instead') +class MetaSWHRemoteAPI(MetaRPCClient): + pass -SWHRemoteAPI = deprecated( - version='0.0.64', - reason='Use the RPCClient instead')(RPCClient) + +@deprecated(version='0.0.64', + reason='Use the RPCClient instead') +class SWHRemoteAPI(RPCClient): + pass diff --git a/swh/core/api/asynchronous.py b/swh/core/api/asynchronous.py --- a/swh/core/api/asynchronous.py +++ b/swh/core/api/asynchronous.py @@ -55,6 +55,7 @@ super().__init__(*args, middlewares=middlewares, **kwargs) -SWHRemoteAPI = deprecated( - version='0.0.64', - reason='Use the RPCServerApp instead')(RPCServerApp) +@deprecated(version='0.0.64', + reason='Use the RPCServerApp instead') +class SWHRemoteAPI(RPCServerApp): + pass