python-injection 0.17.2__py3-none-any.whl → 0.17.3.post0__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/ext/fastapi.py CHANGED
@@ -1,5 +1,5 @@
1
1
  from types import GenericAlias
2
- from typing import TYPE_CHECKING, Annotated, Any, TypeAliasType
2
+ from typing import Annotated, Any, TypeAliasType
3
3
 
4
4
  from fastapi import Depends
5
5
 
@@ -33,10 +33,6 @@ class FastAPIInject:
33
33
  return Annotated[cls, self(cls), *iter_params]
34
34
 
35
35
 
36
- if TYPE_CHECKING:
37
- type Inject[T, *Metadata] = Annotated[T, Depends(...), *Metadata]
38
-
39
- else:
40
- Inject = FastAPIInject()
36
+ Inject = FastAPIInject()
41
37
 
42
38
  del FastAPIInject
@@ -0,0 +1,5 @@
1
+ from typing import Annotated
2
+
3
+ from fastapi import Depends
4
+
5
+ type Inject[T, *Metadata] = Annotated[T, Depends(...), *Metadata]
@@ -1,7 +1,7 @@
1
1
  from typing import ContextManager, Final
2
2
 
3
3
  from injection import Module, mod
4
- from injection.utils import load_profile
4
+ from injection.loaders import load_profile
5
5
 
6
6
  __all__ = (
7
7
  "load_test_profile",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-injection
3
- Version: 0.17.2
3
+ Version: 0.17.3.post0
4
4
  Summary: Fast and easy dependency injection framework.
5
5
  Project-URL: Repository, https://github.com/100nm/python-injection
6
6
  Author: remimd
@@ -19,6 +19,8 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
19
  Classifier: Topic :: Software Development :: Testing
20
20
  Classifier: Typing :: Typed
21
21
  Requires-Python: <4,>=3.12
22
+ Provides-Extra: async
23
+ Requires-Dist: anyio; extra == 'async'
22
24
  Description-Content-Type: text/markdown
23
25
 
24
26
  # python-injection
@@ -1,8 +1,8 @@
1
1
  injection/__init__.py,sha256=7ZRUlO5EEPWO7IlbYHD-8DOX-cg4Np4nYq5fpw-U56o,1259
2
2
  injection/__init__.pyi,sha256=O2W6ZWcwH58JnDmJNkJ6cdoaO0D2NE7PEVFgfJNTwB0,10717
3
3
  injection/exceptions.py,sha256=v57yMujiq6H_zwwn30A8UYEZX9R9k-bY8FnsdaimPM4,1025
4
+ injection/loaders.py,sha256=bLIVA_3N3mTEQ3kGV4YzrWEnokHxUGqWYNKPggOOnpg,4065
4
5
  injection/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- injection/utils.py,sha256=bLIVA_3N3mTEQ3kGV4YzrWEnokHxUGqWYNKPggOOnpg,4065
6
6
  injection/_core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  injection/_core/descriptors.py,sha256=jH0pyIlPurMmU4yXr-HKS_7BJ-9d0XUvEx4pQre3QeI,704
8
8
  injection/_core/injectables.py,sha256=Rg1nxDkbcpeX4ELohrNVMguPhN36SNQuD0JKfyfL6bI,6192
@@ -17,9 +17,10 @@ injection/_core/common/key.py,sha256=ghkZD-Y8Moz6SEPNgMh3xgsZUjDVq-XYAmXaCu5VuCA
17
17
  injection/_core/common/lazy.py,sha256=6xh5h0lmaNvl32V0WoX4VCTsNJ3zUJdWVqpLJ_YeIIU,1363
18
18
  injection/_core/common/type.py,sha256=SCDtmBv9qFvEf5o5tTgCuwMDfuo1fgjSW0bUqA8ACis,2251
19
19
  injection/ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
- injection/ext/fastapi.py,sha256=Kl-gei0zjFL_oeoOqAOnj7St3Z_5MZlxcKSmuR4g1is,1082
21
- injection/testing/__init__.py,sha256=SiImXDd0-DO1a8S5nbUQRtgDX8iaU_nHcp8DdqwtD2M,896
20
+ injection/ext/fastapi.py,sha256=layUUer5IWiZX6Mmx1_RCYDLNCtEHtpya5ZL6TTBOkY,968
21
+ injection/ext/fastapi.pyi,sha256=8OZEUjHFB9n7QXv_dtXdDuXW-r2huQEFsJ03gJOOvwQ,125
22
+ injection/testing/__init__.py,sha256=PsrvNxYvn11if8CJpEYxcTxniqMt2w_7fBaDkY9RA5o,898
22
23
  injection/testing/__init__.pyi,sha256=iOii0i9F5n7znltGeGQYI2KXC_if9SAogLh1h03yx-0,540
23
- python_injection-0.17.2.dist-info/METADATA,sha256=lJqNL0UMAVNRNxj6CodPgVZuCGVoU3VjZThGAGHn6c0,3199
24
- python_injection-0.17.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
- python_injection-0.17.2.dist-info/RECORD,,
24
+ python_injection-0.17.3.post0.dist-info/METADATA,sha256=n-1M59B6b0yrl_d5BYkCGaPUj2T29RtOkqJq3y-mVNs,3266
25
+ python_injection-0.17.3.post0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
+ python_injection-0.17.3.post0.dist-info/RECORD,,
File without changes