Improved service provider

This commit is contained in:
Sven Heidemann 2021-03-23 21:42:08 +01:00
parent ca51f88d2b
commit afb91c8f1f

View File

@ -15,7 +15,13 @@ class ServiceProviderABC(ABC):
pass
@abstractmethod
def build_service(self, service_type: type) -> object: pass
def build_service(self, service_type: type) -> object:
"""
Creates instance of given type
:param service_type:
:return:
"""
pass
@abstractmethod
def get_service(self, instance_type: Type) -> Callable[ServiceABC]: