diff --git a/CHANGES.rst b/CHANGES.rst index 9d2b53bb..b7c78bfb 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -61,6 +61,9 @@ Deprecations and Removals - Added `'sia1'` as servicetype for registry searches. [#583] +- Adding ``session`` kwarg to allow to pass a session along when turning + an Interface into a service via ``Interface.to_service``. [#590] + 1.5.2 (2024-05-22) ================== diff --git a/pyvo/registry/regtap.py b/pyvo/registry/regtap.py index 1ada2226..1b096a46 100644 --- a/pyvo/registry/regtap.py +++ b/pyvo/registry/regtap.py @@ -806,10 +806,10 @@ def get_interface(self, *, return candidates[0] - def get_service(self, service_type = None, *, - lax = False, - keyword = None, - session = None): + def get_service(self, service_type: str = None, *, + lax: bool = False, + keyword: str = None, + session: object = None): """ return an appropriate DALService subclass for this resource that can be used to search the resource using service_type.