modern-di 0.15.0__tar.gz → 0.15.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.
Potentially problematic release.
This version of modern-di might be problematic. Click here for more details.
- {modern_di-0.15.0 → modern_di-0.15.2}/PKG-INFO +1 -1
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/container.py +8 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/providers/async_factory.py +1 -1
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/providers/async_singleton.py +1 -1
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/providers/factory.py +1 -1
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/providers/resource.py +1 -1
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/providers/singleton.py +1 -1
- {modern_di-0.15.0 → modern_di-0.15.2}/.gitignore +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/__init__.py +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/graph.py +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/helpers/__init__.py +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/helpers/attr_getter_helpers.py +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/provider_state.py +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/providers/__init__.py +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/providers/abstract.py +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/providers/container_provider.py +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/providers/context_adapter.py +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/providers/dict.py +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/providers/injected_factory.py +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/providers/list.py +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/providers/object.py +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/providers/selector.py +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/py.typed +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/modern_di/scope.py +0 -0
- {modern_di-0.15.0 → modern_di-0.15.2}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: modern-di
|
|
3
|
-
Version: 0.15.
|
|
3
|
+
Version: 0.15.2
|
|
4
4
|
Summary: Dependency Injection framework with IOC-container and scopes
|
|
5
5
|
Project-URL: repository, https://github.com/modern-python/modern-di
|
|
6
6
|
Project-URL: docs, https://modern-di.readthedocs.io
|
|
@@ -160,3 +160,11 @@ class Container(contextlib.AbstractAsyncContextManager["Container"], contextlib.
|
|
|
160
160
|
traceback: types.TracebackType | None,
|
|
161
161
|
) -> None:
|
|
162
162
|
self.sync_close()
|
|
163
|
+
|
|
164
|
+
def __deepcopy__(self, *_: object, **__: object) -> "typing_extensions.Self":
|
|
165
|
+
"""Hack to prevent cloning object."""
|
|
166
|
+
return self
|
|
167
|
+
|
|
168
|
+
def __copy__(self, *_: object, **__: object) -> "typing_extensions.Self":
|
|
169
|
+
"""Hack to prevent cloning object."""
|
|
170
|
+
return self
|
|
@@ -12,7 +12,7 @@ P = typing.ParamSpec("P")
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
class Resource(AbstractCreatorProvider[T_co]):
|
|
15
|
-
__slots__ = [*AbstractCreatorProvider.BASE_SLOTS, "
|
|
15
|
+
__slots__ = [*AbstractCreatorProvider.BASE_SLOTS, "_is_async"]
|
|
16
16
|
|
|
17
17
|
def _is_creator_async(
|
|
18
18
|
self,
|
|
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
|