python-injection 0.18.3__tar.gz → 0.18.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_injection-0.18.3 → python_injection-0.18.5}/PKG-INFO +1 -1
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/_core/module.py +7 -6
- {python_injection-0.18.3 → python_injection-0.18.5}/pyproject.toml +1 -1
- {python_injection-0.18.3 → python_injection-0.18.5}/.gitignore +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/LICENSE +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/README.md +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/__init__.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/__init__.pyi +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/_core/__init__.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/_core/common/__init__.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/_core/common/asynchronous.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/_core/common/event.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/_core/common/invertible.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/_core/common/key.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/_core/common/lazy.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/_core/common/type.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/_core/descriptors.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/_core/injectables.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/_core/scope.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/_core/slots.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/entrypoint.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/exceptions.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/ext/__init__.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/ext/fastapi.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/ext/fastapi.pyi +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/loaders.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/py.typed +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/testing/__init__.py +0 -0
- {python_injection-0.18.3 → python_injection-0.18.5}/injection/testing/__init__.pyi +0 -0
@@ -185,7 +185,7 @@ class Broker(Protocol):
|
|
185
185
|
raise NotImplementedError
|
186
186
|
|
187
187
|
@abstractmethod
|
188
|
-
def
|
188
|
+
def unsafe_unlocking(self) -> None:
|
189
189
|
raise NotImplementedError
|
190
190
|
|
191
191
|
@abstractmethod
|
@@ -295,12 +295,10 @@ class Locator(Broker):
|
|
295
295
|
|
296
296
|
return self
|
297
297
|
|
298
|
-
def
|
298
|
+
def unsafe_unlocking(self) -> None:
|
299
299
|
for injectable in self.__injectables:
|
300
300
|
injectable.unlock()
|
301
301
|
|
302
|
-
return self
|
303
|
-
|
304
302
|
async def all_ready(self) -> None:
|
305
303
|
for injectable in self.__injectables:
|
306
304
|
if injectable.is_locked:
|
@@ -811,11 +809,14 @@ class Module(Broker, EventListener):
|
|
811
809
|
event = UnlockCalled()
|
812
810
|
|
813
811
|
with self.dispatch(event, lock_bypass=True):
|
814
|
-
|
815
|
-
broker.unlock()
|
812
|
+
self.unsafe_unlocking()
|
816
813
|
|
817
814
|
return self
|
818
815
|
|
816
|
+
def unsafe_unlocking(self) -> None:
|
817
|
+
for broker in self.__brokers:
|
818
|
+
broker.unsafe_unlocking()
|
819
|
+
|
819
820
|
def load_profile(self, *names: str) -> ContextManager[Self]:
|
820
821
|
modules = (self.from_name(name) for name in names)
|
821
822
|
self.unlock().init_modules(*modules)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|