python-injection 0.21.0__py3-none-any.whl → 0.21.1__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.
@@ -9,7 +9,7 @@ from collections.abc import (
9
9
  Iterable,
10
10
  Iterator,
11
11
  )
12
- from inspect import isfunction
12
+ from inspect import isclass, isfunction
13
13
  from types import GenericAlias, UnionType
14
14
  from typing import (
15
15
  Annotated,
@@ -33,7 +33,7 @@ type TypeInfo[T] = (
33
33
 
34
34
  def get_return_types(*args: TypeInfo[Any]) -> Iterator[InputType[Any]]:
35
35
  for arg in args:
36
- if isinstance(arg, Collection):
36
+ if isinstance(arg, Collection) and not isclass(arg):
37
37
  inner_args = arg
38
38
 
39
39
  elif isfunction(arg) and (return_type := get_return_hint(arg)):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-injection
3
- Version: 0.21.0
3
+ Version: 0.21.1
4
4
  Summary: Fast and easy dependency injection framework.
5
5
  Project-URL: Repository, https://github.com/100nm/python-injection
6
6
  Author: remimd
@@ -18,13 +18,13 @@ injection/_core/common/invertible.py,sha256=gA_vw5nBjgp_w9MrDK5jMO8lhuOQWON8BbPp
18
18
  injection/_core/common/key.py,sha256=ghkZD-Y8Moz6SEPNgMh3xgsZUjDVq-XYAmXaCu5VuCA,80
19
19
  injection/_core/common/lazy.py,sha256=hZvz9LhlYxVkD_D8VBAvQmy7YuVaaw075jq0XM0w9_Y,1193
20
20
  injection/_core/common/threading.py,sha256=LR5_wiwZ9_YrcOOKg0qtwbe1YqYdYP57-PAFIe4bknM,415
21
- injection/_core/common/type.py,sha256=w8nH8_OilxR9r9zGNXqIxzMJbrw0uUUMBnpw9NTnkaY,2476
21
+ injection/_core/common/type.py,sha256=NjbMoYDOzhKYWKNXrwWqajFyx7mcVFF4yIP9cVPKknQ,2506
22
22
  injection/ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  injection/ext/fastapi.py,sha256=fiy3-mZIIwGcql3Y5ekFX8_7hALzqXP5u40qbtNE73o,1441
24
24
  injection/ext/fastapi.pyi,sha256=HLs7mfruIEFRrN_Xf8oCvSa4qwHWfwm6HHU_KMedXkE,185
25
25
  injection/testing/__init__.py,sha256=bJ7WXBXrw4rHc91AFVFnOwFLWOlpvX9Oh2SnRQ_NESo,919
26
26
  injection/testing/__init__.pyi,sha256=raGsGlxwbz3jkzJwA_5oCIE1emWINjT2UuwzbnqRb-0,577
27
- python_injection-0.21.0.dist-info/METADATA,sha256=KiLbu5XjjCpNwdTIOkwTwZBflYpLPvTVkN8g8rHzX0c,4667
28
- python_injection-0.21.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
29
- python_injection-0.21.0.dist-info/licenses/LICENSE,sha256=oC77BOa9kaaQni5rW-Z-ytz3E5h4EVg248BHg9UFgyg,1063
30
- python_injection-0.21.0.dist-info/RECORD,,
27
+ python_injection-0.21.1.dist-info/METADATA,sha256=gLTl40ZZWeBzp1XdXhgCL1aAxSfbRK940p7Id2fC21c,4667
28
+ python_injection-0.21.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
29
+ python_injection-0.21.1.dist-info/licenses/LICENSE,sha256=oC77BOa9kaaQni5rW-Z-ytz3E5h4EVg248BHg9UFgyg,1063
30
+ python_injection-0.21.1.dist-info/RECORD,,