modern-di 0.16.1__py3-none-any.whl → 0.16.3__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.

Potentially problematic release.


This version of modern-di might be problematic. Click here for more details.

modern_di/container.py CHANGED
@@ -49,7 +49,7 @@ class Container(contextlib.AbstractAsyncContextManager["Container"], contextlib.
49
49
 
50
50
  def _check_entered(self) -> None:
51
51
  if self._is_async is None:
52
- msg = "Enter the context first"
52
+ msg = f"Enter the context of {self.scope.name} scope"
53
53
  raise RuntimeError(msg)
54
54
 
55
55
  def build_child_container(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: modern-di
3
- Version: 0.16.1
3
+ Version: 0.16.3
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
@@ -1,5 +1,5 @@
1
1
  modern_di/__init__.py,sha256=L01VkzSJiV0d0FPrh1DZ-Wy5mUmoG6X-oLz7xYxtehI,194
2
- modern_di/container.py,sha256=sNHUGk8Y_eoQSLsSc-ZOqUBP2edsZwpifigcBH2Ka7g,5576
2
+ modern_di/container.py,sha256=8M2FeSz-z7s17mUNFEfsTYpq18yI9gsP7ZXKFcZwx74,5598
3
3
  modern_di/graph.py,sha256=X60wtG3Mqus_5YZNiZlQuXoHODBp7rYl_IHJs7GzSQM,1356
4
4
  modern_di/provider_state.py,sha256=oU08QnMr0yhIZKkz0Pee8_RnWtETDE9ux4JB83qhwTI,1358
5
5
  modern_di/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -20,6 +20,6 @@ modern_di/providers/object.py,sha256=Sm0mb3Ua7cZ5Ay65fLvl7fnJDSQrQZwvzio3lkkXP2A
20
20
  modern_di/providers/resource.py,sha256=jEP6Ppr0gmdgWaQGF4sU2PIdt5xSzxcSDubC_IqxE1k,4559
21
21
  modern_di/providers/selector.py,sha256=8WCqdaIxb2SNp-hKs1F9pfW0v3PdFr2IfH9VGMxWejs,1417
22
22
  modern_di/providers/singleton.py,sha256=gfJvAQ7L0JBYlhrzKvaYYDiWo8MPbp0CCU8hGtuzs7U,2357
23
- modern_di-0.16.1.dist-info/METADATA,sha256=FtIjG-7PNJpPc61F98sjCHir5Ech_fkaaDRwugClhWM,3382
24
- modern_di-0.16.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
- modern_di-0.16.1.dist-info/RECORD,,
23
+ modern_di-0.16.3.dist-info/METADATA,sha256=VpbLwBMMcgCYlkL6V-If8THXr5vTinCofTws46H8KHw,3382
24
+ modern_di-0.16.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
+ modern_di-0.16.3.dist-info/RECORD,,