python-injection 0.18.6.post0__py3-none-any.whl → 0.18.7__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.
injection/entrypoint.py CHANGED
@@ -153,7 +153,9 @@ class Entrypoint[**P, T]:
153
153
  setup_method = profile_loader.module.make_injected_function(setup_method)
154
154
 
155
155
  def decorator(function: Callable[P, T]) -> Callable[P, _T]:
156
- profile_loader.init()
156
+ if profile_loader.module_subsets:
157
+ profile_loader.init()
158
+
157
159
  self = cls(function, profile_loader)
158
160
  return MethodType(setup_method, self)().function
159
161
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-injection
3
- Version: 0.18.6.post0
3
+ Version: 0.18.7
4
4
  Summary: Fast and easy dependency injection framework.
5
5
  Project-URL: Repository, https://github.com/100nm/python-injection
6
6
  Author: remimd
@@ -1,6 +1,6 @@
1
1
  injection/__init__.py,sha256=7ZRUlO5EEPWO7IlbYHD-8DOX-cg4Np4nYq5fpw-U56o,1259
2
2
  injection/__init__.pyi,sha256=33A511o3QKQAiQOHL8OQtFPdF-ObM1BqWPmswXhxj7c,10634
3
- injection/entrypoint.py,sha256=12b0_zHAFxHCerAoJTIHkhqi3mLkgheECYAaCUZv_DU,4751
3
+ injection/entrypoint.py,sha256=baVzT8VoNJGQknSR9egCGa5wEjnnpd-BpjwXxHC-GI4,4802
4
4
  injection/exceptions.py,sha256=v57yMujiq6H_zwwn30A8UYEZX9R9k-bY8FnsdaimPM4,1025
5
5
  injection/loaders.py,sha256=_IpsMhsDrto-OeMaBdD5b71wqzxhWnxgB-Fv2H3T4Zs,6465
6
6
  injection/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -22,7 +22,7 @@ injection/ext/fastapi.py,sha256=layUUer5IWiZX6Mmx1_RCYDLNCtEHtpya5ZL6TTBOkY,968
22
22
  injection/ext/fastapi.pyi,sha256=8OZEUjHFB9n7QXv_dtXdDuXW-r2huQEFsJ03gJOOvwQ,125
23
23
  injection/testing/__init__.py,sha256=bJ7WXBXrw4rHc91AFVFnOwFLWOlpvX9Oh2SnRQ_NESo,919
24
24
  injection/testing/__init__.pyi,sha256=raGsGlxwbz3jkzJwA_5oCIE1emWINjT2UuwzbnqRb-0,577
25
- python_injection-0.18.6.post0.dist-info/METADATA,sha256=AG7FsuCwRVZquzk1Yq5iClyGofdaM4IeAhcTskhlap0,3403
26
- python_injection-0.18.6.post0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
- python_injection-0.18.6.post0.dist-info/licenses/LICENSE,sha256=oC77BOa9kaaQni5rW-Z-ytz3E5h4EVg248BHg9UFgyg,1063
28
- python_injection-0.18.6.post0.dist-info/RECORD,,
25
+ python_injection-0.18.7.dist-info/METADATA,sha256=0QM_IhbxEFYlJ8pz77pfoZGlVD93CoGw29588Fc6h8g,3397
26
+ python_injection-0.18.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
+ python_injection-0.18.7.dist-info/licenses/LICENSE,sha256=oC77BOa9kaaQni5rW-Z-ytz3E5h4EVg248BHg9UFgyg,1063
28
+ python_injection-0.18.7.dist-info/RECORD,,