Fixed static inject args order

This commit is contained in:
2023-01-15 02:33:56 +01:00
parent 8b40c65661
commit 269f083662
16 changed files with 30 additions and 30 deletions

View File

@@ -15,7 +15,7 @@ __title__ = 'cpl_core.dependency_injection'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de'
__version__ = '2022.12.1.post2'
__version__ = '2022.12.1.post3'
from collections import namedtuple
@@ -31,4 +31,4 @@ from .service_provider import ServiceProvider
from .service_provider_abc import ServiceProviderABC
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
version_info = VersionInfo(major='2022', minor='12', micro='1.post2')
version_info = VersionInfo(major='2022', minor='12', micro='1.post3')

View File

@@ -111,6 +111,6 @@ class ServiceProviderABC(ABC):
raise Exception(f'{cls.__name__} not build!')
injection = [x for x in cls._provider.build_by_signature(signature(f)) if x is not None]
return f(*injection, *args, **kwargs)
return f(*args, *injection, **kwargs)
return inner