anydi 0.70.1__tar.gz → 0.70.2__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.
Files changed (28) hide show
  1. {anydi-0.70.1 → anydi-0.70.2}/PKG-INFO +1 -1
  2. {anydi-0.70.1 → anydi-0.70.2}/anydi/_container.py +5 -5
  3. {anydi-0.70.1 → anydi-0.70.2}/anydi/_provider.py +1 -0
  4. {anydi-0.70.1 → anydi-0.70.2}/pyproject.toml +1 -1
  5. {anydi-0.70.1 → anydi-0.70.2}/README.md +0 -0
  6. {anydi-0.70.1 → anydi-0.70.2}/anydi/__init__.py +0 -0
  7. {anydi-0.70.1 → anydi-0.70.2}/anydi/_async_lock.py +0 -0
  8. {anydi-0.70.1 → anydi-0.70.2}/anydi/_cli.py +0 -0
  9. {anydi-0.70.1 → anydi-0.70.2}/anydi/_context.py +0 -0
  10. {anydi-0.70.1 → anydi-0.70.2}/anydi/_decorators.py +0 -0
  11. {anydi-0.70.1 → anydi-0.70.2}/anydi/_graph.py +0 -0
  12. {anydi-0.70.1 → anydi-0.70.2}/anydi/_injector.py +0 -0
  13. {anydi-0.70.1 → anydi-0.70.2}/anydi/_marker.py +0 -0
  14. {anydi-0.70.1 → anydi-0.70.2}/anydi/_module.py +0 -0
  15. {anydi-0.70.1 → anydi-0.70.2}/anydi/_resolver.py +0 -0
  16. {anydi-0.70.1 → anydi-0.70.2}/anydi/_scanner.py +0 -0
  17. {anydi-0.70.1 → anydi-0.70.2}/anydi/_types.py +0 -0
  18. {anydi-0.70.1 → anydi-0.70.2}/anydi/ext/__init__.py +0 -0
  19. {anydi-0.70.1 → anydi-0.70.2}/anydi/ext/django/__init__.py +0 -0
  20. {anydi-0.70.1 → anydi-0.70.2}/anydi/ext/fastapi.py +0 -0
  21. {anydi-0.70.1 → anydi-0.70.2}/anydi/ext/faststream.py +0 -0
  22. {anydi-0.70.1 → anydi-0.70.2}/anydi/ext/pydantic_settings.py +0 -0
  23. {anydi-0.70.1 → anydi-0.70.2}/anydi/ext/pytest_plugin.py +0 -0
  24. {anydi-0.70.1 → anydi-0.70.2}/anydi/ext/starlette/__init__.py +0 -0
  25. {anydi-0.70.1 → anydi-0.70.2}/anydi/ext/starlette/middleware.py +0 -0
  26. {anydi-0.70.1 → anydi-0.70.2}/anydi/ext/typer.py +0 -0
  27. {anydi-0.70.1 → anydi-0.70.2}/anydi/py.typed +0 -0
  28. {anydi-0.70.1 → anydi-0.70.2}/anydi/testing.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: anydi
3
- Version: 0.70.1
3
+ Version: 0.70.2
4
4
  Summary: Dependency Injection library
5
5
  Keywords: dependency injection,dependencies,di,async,asyncio,application
6
6
  Author: Anton Ruhlov
@@ -83,13 +83,13 @@ class Container:
83
83
  # Register providers
84
84
  providers = providers or []
85
85
  for provider in providers:
86
- self._register_provider(
86
+ self.register(
87
87
  provider.dependency_type,
88
88
  provider.factory,
89
- provider.scope,
90
- provider.from_context,
91
- False,
92
- None,
89
+ scope=provider.scope,
90
+ from_context=provider.from_context,
91
+ alias=provider.alias,
92
+ override=False,
93
93
  )
94
94
 
95
95
  # Register modules
@@ -77,6 +77,7 @@ class ProviderDef:
77
77
  _: KW_ONLY
78
78
  from_context: bool = False
79
79
  scope: Scope = "singleton"
80
+ alias: Any = NOT_SET
80
81
  interface: Any = NOT_SET
81
82
  call: Callable[..., Any] = NOT_SET
82
83
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "anydi"
3
- version = "0.70.1"
3
+ version = "0.70.2"
4
4
  description = "Dependency Injection library"
5
5
  authors = [{ name = "Anton Ruhlov", email = "antonruhlov@gmail.com" }]
6
6
  requires-python = ">=3.10.0, <3.15"
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