anydi 0.27.0a4__py3-none-any.whl → 0.27.0a5__py3-none-any.whl
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/ext/faststream.py +6 -1
- {anydi-0.27.0a4.dist-info → anydi-0.27.0a5.dist-info}/METADATA +1 -1
- {anydi-0.27.0a4.dist-info → anydi-0.27.0a5.dist-info}/RECORD +6 -6
- {anydi-0.27.0a4.dist-info → anydi-0.27.0a5.dist-info}/LICENSE +0 -0
- {anydi-0.27.0a4.dist-info → anydi-0.27.0a5.dist-info}/WHEEL +0 -0
- {anydi-0.27.0a4.dist-info → anydi-0.27.0a5.dist-info}/entry_points.txt +0 -0
anydi/ext/faststream.py
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
"""AnyDI FastStream extension."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
1
5
|
import logging
|
|
2
6
|
from typing import Any, cast
|
|
3
7
|
|
|
@@ -53,7 +57,8 @@ class Resolver(HasInterface, Depends):
|
|
|
53
57
|
super().__init__(dependency=self._dependency, use_cache=True, cast=True)
|
|
54
58
|
|
|
55
59
|
async def _dependency(self, context: ContextRepo) -> Any:
|
|
56
|
-
|
|
60
|
+
container = get_container(context.get("broker"))
|
|
61
|
+
return await container.aresolve(self.interface)
|
|
57
62
|
|
|
58
63
|
|
|
59
64
|
def Inject() -> Any: # noqa
|
|
@@ -18,13 +18,13 @@ anydi/ext/django/ninja/__init__.py,sha256=kW3grUgWp_nkWSG_-39ADHMrZLGNcj9TsJ9OW8
|
|
|
18
18
|
anydi/ext/django/ninja/_operation.py,sha256=wSWa7D73XTVlOibmOciv2l6JHPe1ERZcXrqI8W-oO2w,2696
|
|
19
19
|
anydi/ext/django/ninja/_signature.py,sha256=2cSzKxBIxXLqtwNuH6GSlmjVJFftoGmleWfyk_NVEWw,2207
|
|
20
20
|
anydi/ext/fastapi.py,sha256=vhfSyovXuCjvSkx6AiLOTNU975i8wDg72C5fqXQiFLw,2896
|
|
21
|
-
anydi/ext/faststream.py,sha256=
|
|
21
|
+
anydi/ext/faststream.py,sha256=L4rkWYIO4ZZuWH-8M8NT6_J0bT0Dz_EWO3B6Oj1iFBI,2024
|
|
22
22
|
anydi/ext/pytest_plugin.py,sha256=pFLcfxGtJfGSqtk7sPrrHFSKOaZoKZTWt5X8CT0ydmA,4242
|
|
23
23
|
anydi/ext/starlette/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
24
|
anydi/ext/starlette/middleware.py,sha256=Ni0BQaPjs_Ha6zcLZYYJ3-XkslTCnL9aCSa06rnRDMI,1139
|
|
25
25
|
anydi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
|
-
anydi-0.27.
|
|
27
|
-
anydi-0.27.
|
|
28
|
-
anydi-0.27.
|
|
29
|
-
anydi-0.27.
|
|
30
|
-
anydi-0.27.
|
|
26
|
+
anydi-0.27.0a5.dist-info/LICENSE,sha256=V6rU8a8fv6o2jQ-7ODHs0XfDFimot8Q6Km6CylRIDTo,1069
|
|
27
|
+
anydi-0.27.0a5.dist-info/METADATA,sha256=GoZY2ldWbiQZtFTCMEvGfDhfKb_ZnFjV7AYD6ZwlUzo,5163
|
|
28
|
+
anydi-0.27.0a5.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
29
|
+
anydi-0.27.0a5.dist-info/entry_points.txt,sha256=GmQblwzxFg42zva1HyBYJJ7TvrTIcSAGBHmyi3bvsi4,42
|
|
30
|
+
anydi-0.27.0a5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|