anydi 0.39.1__py3-none-any.whl → 0.39.2__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/_container.py CHANGED
@@ -828,8 +828,10 @@ class Container:
828
828
  "not registered."
829
829
  )
830
830
  self._override_instances[interface] = instance
831
- yield
832
- del self._override_instances[interface]
831
+ try:
832
+ yield
833
+ finally:
834
+ self._override_instances.pop(interface, None)
833
835
 
834
836
  ############################
835
837
  # Testing Methods
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: anydi
3
- Version: 0.39.1
3
+ Version: 0.39.2
4
4
  Summary: Dependency Injection library
5
5
  Project-URL: Repository, https://github.com/antonrh/anydi
6
6
  Author-email: Anton Ruhlov <antonruhlov@gmail.com>
@@ -1,5 +1,5 @@
1
1
  anydi/__init__.py,sha256=aAq10a1V_zQ3_Me3p_pll5d1O77PIgqotkOm3pshORI,495
2
- anydi/_container.py,sha256=9SmKu_yY2Wb3Z1Xr5-ErOsO6Aaa2fOa8LOHWZIOD8ME,41455
2
+ anydi/_container.py,sha256=TmiH3ZXY1edF_i1-peCwrxNpJxjJ1eyIbbO5WMSVDNE,41499
3
3
  anydi/_context.py,sha256=dlRvOFHbbIcg-q7g4TqJfytiSOERtbwTlCsdzXwo4GE,3012
4
4
  anydi/_types.py,sha256=ColGaOgF7Zqdh34N2JSWxr-8rt5bTVJomW0JqZASKHM,3631
5
5
  anydi/_utils.py,sha256=X_sSQFpRogHLh6Bxu0MdUthpc24jvnkHqdwKndQminA,4848
@@ -21,8 +21,8 @@ anydi/ext/django/ninja/_operation.py,sha256=wSWa7D73XTVlOibmOciv2l6JHPe1ERZcXrqI
21
21
  anydi/ext/django/ninja/_signature.py,sha256=2cSzKxBIxXLqtwNuH6GSlmjVJFftoGmleWfyk_NVEWw,2207
22
22
  anydi/ext/starlette/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  anydi/ext/starlette/middleware.py,sha256=9CQtGg5ZzUz2gFSzJr8U4BWzwNjK8XMctm3n52M77Z0,792
24
- anydi-0.39.1.dist-info/METADATA,sha256=Q97Q0tMgDyXiN2wo8w_c-CKyo1gy22fF9TRTDsurGjg,4957
25
- anydi-0.39.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
- anydi-0.39.1.dist-info/entry_points.txt,sha256=Nklo9f3Oe4AkNsEgC4g43nCJ-23QDngZSVDNRMdaILI,43
27
- anydi-0.39.1.dist-info/licenses/LICENSE,sha256=V6rU8a8fv6o2jQ-7ODHs0XfDFimot8Q6Km6CylRIDTo,1069
28
- anydi-0.39.1.dist-info/RECORD,,
24
+ anydi-0.39.2.dist-info/METADATA,sha256=lqw8W8T5TTlZs--a9J7F9h-tf1f9zrngbntTCE-VNNY,4957
25
+ anydi-0.39.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
+ anydi-0.39.2.dist-info/entry_points.txt,sha256=Nklo9f3Oe4AkNsEgC4g43nCJ-23QDngZSVDNRMdaILI,43
27
+ anydi-0.39.2.dist-info/licenses/LICENSE,sha256=V6rU8a8fv6o2jQ-7ODHs0XfDFimot8Q6Km6CylRIDTo,1069
28
+ anydi-0.39.2.dist-info/RECORD,,
File without changes