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

@@ -39,10 +39,10 @@ class AbstractProvider(typing.Generic[T_co], abc.ABC):
39
39
 
40
40
  class AbstractOverrideProvider(AbstractProvider[T_co], abc.ABC):
41
41
  def override(self, override_object: object, container: Container) -> None:
42
- container.override(self.provider_id, override_object)
42
+ container.find_container(self.scope).override(self.provider_id, override_object)
43
43
 
44
44
  def reset_override(self, container: Container) -> None:
45
- container.reset_override(self.provider_id)
45
+ container.find_container(self.scope).reset_override(self.provider_id)
46
46
 
47
47
 
48
48
  class AbstractCreatorProvider(AbstractOverrideProvider[T_co], abc.ABC):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: modern-di
3
- Version: 0.7.0
3
+ Version: 0.7.1
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
@@ -5,7 +5,7 @@ modern_di/provider_state.py,sha256=5Bl_iYEpXjMqoWZJ4op2-axo4Z8nR_vYbLVHL_u5R0c,1
5
5
  modern_di/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  modern_di/scope.py,sha256=e6Olc-CF89clbYDNGciy-F8EqJt1Mw2703zfuJaEY94,113
7
7
  modern_di/providers/__init__.py,sha256=r594L4kWv_XCHVZcsfUIGBtlXCmih6NR1Ifa105XoQ4,649
8
- modern_di/providers/abstract.py,sha256=UMj4CRn-JfGZfiveWFTkH7V92h4UXS4eYf8noZqPWGQ,3107
8
+ modern_di/providers/abstract.py,sha256=gi4I340Y5eBg0-_lUFsgv1qA0En7oD0F3j53Gf5TgRY,3161
9
9
  modern_di/providers/container_provider.py,sha256=r5IEQXgKtPwvHvbqkbPnmGyDGGCCjokTtdard9Rvt40,548
10
10
  modern_di/providers/context_adapter.py,sha256=_b1x3ToQPWT-9KkDioFhw1W8Q1VXZYUnczfYzMTobVA,760
11
11
  modern_di/providers/dict.py,sha256=nCU9iaqteYHDbILAfhrdnbMgS9_emE4MS7Xn2VoUlPo,858
@@ -15,6 +15,6 @@ modern_di/providers/list.py,sha256=3hx34RfBRmqzh-cT5D6wSTDJPkBGMK_ul4n9gQz-o9M,7
15
15
  modern_di/providers/resource.py,sha256=UwIrX63Crf5iUXu3cp80hw7orl9ahy8frstxAf1Y7wc,4098
16
16
  modern_di/providers/selector.py,sha256=RQbHD2-Liw-TGqu6UELbfCzXYuqxiO_Mg1tLyF3mKQo,1419
17
17
  modern_di/providers/singleton.py,sha256=7XBNhVzhV5Rh_F7iWZx8is7i7_PuctQ9thKeqIkjnTs,1999
18
- modern_di-0.7.0.dist-info/METADATA,sha256=ay_YO5-O-3KDxOiIKF_jR3g421IV-dwltkIo6_sr1U8,5440
19
- modern_di-0.7.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
20
- modern_di-0.7.0.dist-info/RECORD,,
18
+ modern_di-0.7.1.dist-info/METADATA,sha256=08xs8ieFrwY7F9eXeMRua_XE_AxMHiSHAxWTepQuD7Y,5440
19
+ modern_di-0.7.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
20
+ modern_di-0.7.1.dist-info/RECORD,,