anydi 0.37.1__py3-none-any.whl → 0.37.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 +4 -4
- {anydi-0.37.1.dist-info → anydi-0.37.2.dist-info}/METADATA +1 -1
- {anydi-0.37.1.dist-info → anydi-0.37.2.dist-info}/RECORD +6 -6
- {anydi-0.37.1.dist-info → anydi-0.37.2.dist-info}/LICENSE +0 -0
- {anydi-0.37.1.dist-info → anydi-0.37.2.dist-info}/WHEEL +0 -0
- {anydi-0.37.1.dist-info → anydi-0.37.2.dist-info}/entry_points.txt +0 -0
anydi/_container.py
CHANGED
|
@@ -622,7 +622,7 @@ class Container:
|
|
|
622
622
|
|
|
623
623
|
# Try to get instance from defaults
|
|
624
624
|
if parameter.name in defaults:
|
|
625
|
-
|
|
625
|
+
return defaults[parameter.name]
|
|
626
626
|
|
|
627
627
|
# Try to get instance from context
|
|
628
628
|
elif context and parameter.annotation in context:
|
|
@@ -635,7 +635,7 @@ class Container:
|
|
|
635
635
|
except LookupError:
|
|
636
636
|
if parameter.default is inspect.Parameter.empty:
|
|
637
637
|
raise
|
|
638
|
-
|
|
638
|
+
return parameter.default
|
|
639
639
|
|
|
640
640
|
# Wrap the instance in a proxy for testing
|
|
641
641
|
if self.testing:
|
|
@@ -666,7 +666,7 @@ class Container:
|
|
|
666
666
|
|
|
667
667
|
# Try to get instance from defaults
|
|
668
668
|
if parameter.name in defaults:
|
|
669
|
-
|
|
669
|
+
return defaults[parameter.name]
|
|
670
670
|
|
|
671
671
|
# Try to get instance from context
|
|
672
672
|
elif context and parameter.annotation in context:
|
|
@@ -679,7 +679,7 @@ class Container:
|
|
|
679
679
|
except LookupError:
|
|
680
680
|
if parameter.default is inspect.Parameter.empty:
|
|
681
681
|
raise
|
|
682
|
-
|
|
682
|
+
return parameter.default
|
|
683
683
|
|
|
684
684
|
# Wrap the instance in a proxy for testing
|
|
685
685
|
if self.testing:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
anydi/__init__.py,sha256=OfRg2EfXD65pHTGQKhfkABMwUhw5LvsuTQV_Tv4V4wk,501
|
|
2
|
-
anydi/_container.py,sha256=
|
|
2
|
+
anydi/_container.py,sha256=Mfo5fOacyWMbKJmAt1s8P_t7vX7qpAXnC7WFsxKWs4E,38304
|
|
3
3
|
anydi/_context.py,sha256=7LV_SL4QWkJeiG7_4D9PZ5lmU-MPzhofxC95zCgY9Gc,2651
|
|
4
4
|
anydi/_provider.py,sha256=1IyxHO83NHjsPDHLDIZtW1pJ7i8VpWD3EM4T6duw9zA,7661
|
|
5
5
|
anydi/_types.py,sha256=fdO4xNXtGMxVArmlfDkFYbyR895ixkBTW6V8lMceN7Q,1562
|
|
@@ -22,8 +22,8 @@ anydi/ext/pytest_plugin.py,sha256=ShGhiZnP1KyMHhnc9Ci1RKAuHVhw628OTS2P2BLEOfc,50
|
|
|
22
22
|
anydi/ext/starlette/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
23
|
anydi/ext/starlette/middleware.py,sha256=9CQtGg5ZzUz2gFSzJr8U4BWzwNjK8XMctm3n52M77Z0,792
|
|
24
24
|
anydi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
|
-
anydi-0.37.
|
|
26
|
-
anydi-0.37.
|
|
27
|
-
anydi-0.37.
|
|
28
|
-
anydi-0.37.
|
|
29
|
-
anydi-0.37.
|
|
25
|
+
anydi-0.37.2.dist-info/LICENSE,sha256=V6rU8a8fv6o2jQ-7ODHs0XfDFimot8Q6Km6CylRIDTo,1069
|
|
26
|
+
anydi-0.37.2.dist-info/METADATA,sha256=Fplyfc7Bg67HhINBdcRkvn4kJUSR3mWxJ42Bj5B_jEs,5103
|
|
27
|
+
anydi-0.37.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
28
|
+
anydi-0.37.2.dist-info/entry_points.txt,sha256=GmQblwzxFg42zva1HyBYJJ7TvrTIcSAGBHmyi3bvsi4,42
|
|
29
|
+
anydi-0.37.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|