python-injection 0.19.8__tar.gz → 0.20.0__tar.gz
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.
- {python_injection-0.19.8 → python_injection-0.20.0}/PKG-INFO +3 -2
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/_core/common/type.py +3 -5
- {python_injection-0.19.8 → python_injection-0.20.0}/pyproject.toml +3 -2
- {python_injection-0.19.8 → python_injection-0.20.0}/.gitignore +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/LICENSE +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/README.md +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/__init__.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/__init__.pyi +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/_core/__init__.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/_core/asfunction.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/_core/common/__init__.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/_core/common/asynchronous.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/_core/common/event.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/_core/common/invertible.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/_core/common/key.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/_core/common/lazy.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/_core/common/threading.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/_core/descriptors.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/_core/injectables.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/_core/module.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/_core/scope.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/_core/slots.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/entrypoint.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/exceptions.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/ext/__init__.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/ext/fastapi.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/ext/fastapi.pyi +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/loaders.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/py.typed +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/testing/__init__.py +0 -0
- {python_injection-0.19.8 → python_injection-0.20.0}/injection/testing/__init__.pyi +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: python-injection
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.20.0
|
4
4
|
Summary: Fast and easy dependency injection framework.
|
5
5
|
Project-URL: Repository, https://github.com/100nm/python-injection
|
6
6
|
Author: remimd
|
@@ -16,12 +16,13 @@ Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3 :: Only
|
17
17
|
Classifier: Programming Language :: Python :: 3.12
|
18
18
|
Classifier: Programming Language :: Python :: 3.13
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
19
20
|
Classifier: Topic :: Software Development :: Libraries
|
20
21
|
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
21
22
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
22
23
|
Classifier: Topic :: Software Development :: Testing
|
23
24
|
Classifier: Typing :: Typed
|
24
|
-
Requires-Python: <
|
25
|
+
Requires-Python: <3.15,>=3.12
|
25
26
|
Provides-Extra: async
|
26
27
|
Requires-Dist: anyio; extra == 'async'
|
27
28
|
Description-Content-Type: text/markdown
|
@@ -4,10 +4,10 @@ from collections.abc import (
|
|
4
4
|
AsyncIterator,
|
5
5
|
Awaitable,
|
6
6
|
Callable,
|
7
|
+
Collection,
|
7
8
|
Generator,
|
8
9
|
Iterable,
|
9
10
|
Iterator,
|
10
|
-
Sequence,
|
11
11
|
)
|
12
12
|
from inspect import isfunction
|
13
13
|
from types import GenericAlias, UnionType
|
@@ -27,15 +27,13 @@ type TypeInfo[T] = (
|
|
27
27
|
InputType[T]
|
28
28
|
| Callable[..., T]
|
29
29
|
| Callable[..., Awaitable[T]]
|
30
|
-
|
|
30
|
+
| Collection[TypeInfo[T]]
|
31
31
|
)
|
32
32
|
|
33
33
|
|
34
34
|
def get_return_types(*args: TypeInfo[Any]) -> Iterator[InputType[Any]]:
|
35
35
|
for arg in args:
|
36
|
-
if isinstance(arg,
|
37
|
-
isinstance(arg, type | str) or isinstance(get_origin(arg), type)
|
38
|
-
):
|
36
|
+
if isinstance(arg, Collection):
|
39
37
|
inner_args = arg
|
40
38
|
|
41
39
|
elif isfunction(arg) and (return_type := get_return_hint(arg)):
|
@@ -30,12 +30,12 @@ test = [
|
|
30
30
|
|
31
31
|
[project]
|
32
32
|
name = "python-injection"
|
33
|
-
version = "0.
|
33
|
+
version = "0.20.0"
|
34
34
|
description = "Fast and easy dependency injection framework."
|
35
35
|
license = "MIT"
|
36
36
|
license-files = ["LICENSE"]
|
37
37
|
readme = "README.md"
|
38
|
-
requires-python = ">=3.12, <
|
38
|
+
requires-python = ">=3.12, <3.15"
|
39
39
|
authors = [{ name = "remimd" }]
|
40
40
|
keywords = ["dependencies", "dependency", "inject", "injection"]
|
41
41
|
classifiers = [
|
@@ -49,6 +49,7 @@ classifiers = [
|
|
49
49
|
"Programming Language :: Python :: 3 :: Only",
|
50
50
|
"Programming Language :: Python :: 3.12",
|
51
51
|
"Programming Language :: Python :: 3.13",
|
52
|
+
"Programming Language :: Python :: 3.14",
|
52
53
|
"Operating System :: OS Independent",
|
53
54
|
"Intended Audience :: Developers",
|
54
55
|
"Natural Language :: English",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|