From 023a71c50ec63538eebef7330f977d5f48ab96f4 Mon Sep 17 00:00:00 2001 From: Manuel Giffels Date: Fri, 4 Aug 2023 09:49:49 +0200 Subject: [PATCH] Update the SiteAdapter interface, that stop and terminate resources do return None --- tardis/interfaces/siteadapter.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tardis/interfaces/siteadapter.py b/tardis/interfaces/siteadapter.py index 27fb0eba..351a9e6f 100644 --- a/tardis/interfaces/siteadapter.py +++ b/tardis/interfaces/siteadapter.py @@ -273,27 +273,25 @@ class variable. ) from ae @abstractmethod - async def stop_resource(self, resource_attributes: AttributeDict): + async def stop_resource(self, resource_attributes: AttributeDict) -> None: """ Abstract method to define the interface to stop resources at a resource provider. :param resource_attributes: Contains describing attributes of the resource, defined in the :py:class:`~tardis.resources.drone.Drone` implementation! :type resource_attributes: AttributeDict - :return: Contains updated describing attributes of the resource. - :rtype: AttributeDict + :return: None """ raise NotImplementedError @abstractmethod - async def terminate_resource(self, resource_attributes: AttributeDict): + async def terminate_resource(self, resource_attributes: AttributeDict) -> None: """ Abstract method to define the interface to terminate resources at a resource provider. :param resource_attributes: Contains describing attributes of the resource, defined in the :py:class:`~tardis.resources.drone.Drone` implementation! :type resource_attributes: AttributeDict - :return: Contains updated describing attributes of the resource. - :rtype: AttributeDict + :return: None """ raise NotImplementedError