anydi 0.26.5__py3-none-any.whl → 0.26.6__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/_utils.py +8 -9
- {anydi-0.26.5.dist-info → anydi-0.26.6.dist-info}/METADATA +1 -2
- {anydi-0.26.5.dist-info → anydi-0.26.6.dist-info}/RECORD +6 -6
- {anydi-0.26.5.dist-info → anydi-0.26.6.dist-info}/LICENSE +0 -0
- {anydi-0.26.5.dist-info → anydi-0.26.6.dist-info}/WHEEL +0 -0
- {anydi-0.26.5.dist-info → anydi-0.26.6.dist-info}/entry_points.txt +0 -0
anydi/_utils.py
CHANGED
|
@@ -6,7 +6,7 @@ import builtins
|
|
|
6
6
|
import functools
|
|
7
7
|
import inspect
|
|
8
8
|
import sys
|
|
9
|
-
from typing import Any, AsyncIterator, Callable, ForwardRef, Iterator, TypeVar
|
|
9
|
+
from typing import Any, AsyncIterator, Callable, ForwardRef, Iterator, TypeVar
|
|
10
10
|
|
|
11
11
|
from typing_extensions import ParamSpec, get_args, get_origin
|
|
12
12
|
|
|
@@ -16,15 +16,14 @@ except ImportError:
|
|
|
16
16
|
anyio = None # type: ignore[assignment]
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
def evaluate_forwardref(type_: ForwardRef, globalns: Any, localns: Any) -> Any:
|
|
19
|
+
def evaluate_forwardref(type_: ForwardRef, globalns: Any, localns: Any) -> Any:
|
|
20
|
+
if sys.version_info < (3, 9):
|
|
22
21
|
return type_._evaluate(globalns, localns) # noqa
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
elif sys.version_info >= (3, 12):
|
|
23
|
+
return type_._evaluate( # noqa
|
|
24
|
+
globalns, localns, frozenset(), recursive_guard=frozenset()
|
|
25
|
+
)
|
|
26
|
+
return type_._evaluate(globalns, localns, frozenset()) # noqa
|
|
28
27
|
|
|
29
28
|
|
|
30
29
|
T = TypeVar("T")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: anydi
|
|
3
|
-
Version: 0.26.
|
|
3
|
+
Version: 0.26.6
|
|
4
4
|
Summary: Dependency Injection library
|
|
5
5
|
Home-page: https://github.com/antonrh/anydi
|
|
6
6
|
License: MIT
|
|
@@ -22,7 +22,6 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.12
|
|
24
24
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
25
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
26
25
|
Classifier: Topic :: Internet
|
|
27
26
|
Classifier: Topic :: Software Development
|
|
28
27
|
Classifier: Topic :: Software Development :: Libraries
|
|
@@ -5,7 +5,7 @@ anydi/_logger.py,sha256=UpubJUnW83kffFxkhUlObm2DmZX1Pjqoz9YFKS-JOPg,52
|
|
|
5
5
|
anydi/_module.py,sha256=E1TfLud_Af-MPB83PxIzHVA1jlDW2FGaRP_il1a6y3Y,3675
|
|
6
6
|
anydi/_scanner.py,sha256=cyEk-K2Q8ssZStq8GrxMeEcCuAZMw-RXrjlgWEevKCs,6667
|
|
7
7
|
anydi/_types.py,sha256=i8xFxz8pmFj7SGqwOwae_P9VtiRie6DVLwfaLibLwhc,3653
|
|
8
|
-
anydi/_utils.py,sha256=
|
|
8
|
+
anydi/_utils.py,sha256=qtp7c2aCsBMHeTLIkLqpWQmYfQag6con089jsxNawqA,3904
|
|
9
9
|
anydi/ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
anydi/ext/django/__init__.py,sha256=QI1IABCVgSDTUoh7M9WMECKXwB3xvh04HfQ9TOWw1Mk,223
|
|
11
11
|
anydi/ext/django/_container.py,sha256=cxVoYQG16WP0S_Yv4TnLwuaaT7NVEOhLWO-YdALJUb4,418
|
|
@@ -21,8 +21,8 @@ anydi/ext/pytest_plugin.py,sha256=3OWphc4nEzla46_8KR7LXtwGns5eol_YlUWfTf4Cr2Q,39
|
|
|
21
21
|
anydi/ext/starlette/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
anydi/ext/starlette/middleware.py,sha256=Ni0BQaPjs_Ha6zcLZYYJ3-XkslTCnL9aCSa06rnRDMI,1139
|
|
23
23
|
anydi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
-
anydi-0.26.
|
|
25
|
-
anydi-0.26.
|
|
26
|
-
anydi-0.26.
|
|
27
|
-
anydi-0.26.
|
|
28
|
-
anydi-0.26.
|
|
24
|
+
anydi-0.26.6.dist-info/LICENSE,sha256=V6rU8a8fv6o2jQ-7ODHs0XfDFimot8Q6Km6CylRIDTo,1069
|
|
25
|
+
anydi-0.26.6.dist-info/METADATA,sha256=YMB7LVYZSxh_iEu9at9KFOkx9IzqFjZDj6Qjka_33oA,5110
|
|
26
|
+
anydi-0.26.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
27
|
+
anydi-0.26.6.dist-info/entry_points.txt,sha256=GmQblwzxFg42zva1HyBYJJ7TvrTIcSAGBHmyi3bvsi4,42
|
|
28
|
+
anydi-0.26.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|