anydi 0.36.1a0__tar.gz → 0.36.1a2__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.
- {anydi-0.36.1a0 → anydi-0.36.1a2}/PKG-INFO +1 -1
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/_container.py +3 -1
- {anydi-0.36.1a0 → anydi-0.36.1a2}/pyproject.toml +1 -1
- {anydi-0.36.1a0 → anydi-0.36.1a2}/LICENSE +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/README.md +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/__init__.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/_context.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/_provider.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/_types.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/_utils.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/__init__.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/_utils.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/django/__init__.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/django/_container.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/django/_settings.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/django/_utils.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/django/apps.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/django/middleware.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/django/ninja/__init__.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/django/ninja/_operation.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/django/ninja/_signature.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/fastapi.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/faststream.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/pydantic_settings.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/pytest_plugin.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/starlette/__init__.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/ext/starlette/middleware.py +0 -0
- {anydi-0.36.1a0 → anydi-0.36.1a2}/anydi/py.typed +0 -0
|
@@ -622,7 +622,9 @@ class Container:
|
|
|
622
622
|
return defaults[parameter.name]
|
|
623
623
|
|
|
624
624
|
# Get instance from overrides or context cache
|
|
625
|
-
if
|
|
625
|
+
if parameter.annotation in self._override_instances:
|
|
626
|
+
return self._override_instances[parameter.annotation]
|
|
627
|
+
elif context and parameter.annotation in context:
|
|
626
628
|
return context[parameter.annotation]
|
|
627
629
|
|
|
628
630
|
# Resolve the instance
|
|
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
|