python-injection 0.10.3__tar.gz → 0.10.4__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.
Files changed (21) hide show
  1. {python_injection-0.10.3 → python_injection-0.10.4}/PKG-INFO +1 -1
  2. {python_injection-0.10.3 → python_injection-0.10.4}/injection/_core/common/type.py +11 -3
  3. {python_injection-0.10.3 → python_injection-0.10.4}/pyproject.toml +1 -1
  4. {python_injection-0.10.3 → python_injection-0.10.4}/README.md +0 -0
  5. {python_injection-0.10.3 → python_injection-0.10.4}/injection/__init__.py +0 -0
  6. {python_injection-0.10.3 → python_injection-0.10.4}/injection/__init__.pyi +0 -0
  7. {python_injection-0.10.3 → python_injection-0.10.4}/injection/_core/__init__.py +0 -0
  8. {python_injection-0.10.3 → python_injection-0.10.4}/injection/_core/common/__init__.py +0 -0
  9. {python_injection-0.10.3 → python_injection-0.10.4}/injection/_core/common/event.py +0 -0
  10. {python_injection-0.10.3 → python_injection-0.10.4}/injection/_core/common/invertible.py +0 -0
  11. {python_injection-0.10.3 → python_injection-0.10.4}/injection/_core/common/lazy.py +0 -0
  12. {python_injection-0.10.3 → python_injection-0.10.4}/injection/_core/common/threading.py +0 -0
  13. {python_injection-0.10.3 → python_injection-0.10.4}/injection/_core/hook.py +0 -0
  14. {python_injection-0.10.3 → python_injection-0.10.4}/injection/_core/module.py +0 -0
  15. {python_injection-0.10.3 → python_injection-0.10.4}/injection/exceptions.py +0 -0
  16. {python_injection-0.10.3 → python_injection-0.10.4}/injection/integrations/__init__.py +0 -0
  17. {python_injection-0.10.3 → python_injection-0.10.4}/injection/integrations/blacksheep.py +0 -0
  18. {python_injection-0.10.3 → python_injection-0.10.4}/injection/py.typed +0 -0
  19. {python_injection-0.10.3 → python_injection-0.10.4}/injection/testing/__init__.py +0 -0
  20. {python_injection-0.10.3 → python_injection-0.10.4}/injection/testing/__init__.pyi +0 -0
  21. {python_injection-0.10.3 → python_injection-0.10.4}/injection/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-injection
3
- Version: 0.10.3
3
+ Version: 0.10.4
4
4
  Summary: Fast and easy dependency injection framework.
5
5
  Home-page: https://github.com/100nm/python-injection
6
6
  License: MIT
@@ -1,9 +1,17 @@
1
1
  from collections.abc import Awaitable, Callable, Iterable, Iterator
2
2
  from inspect import iscoroutinefunction, isfunction
3
3
  from types import GenericAlias, UnionType
4
- from typing import Annotated, Any, Union, get_args, get_origin, get_type_hints
5
-
6
- type TypeDef[T] = type[T] | GenericAlias
4
+ from typing import (
5
+ Annotated,
6
+ Any,
7
+ TypeAliasType,
8
+ Union,
9
+ get_args,
10
+ get_origin,
11
+ get_type_hints,
12
+ )
13
+
14
+ type TypeDef[T] = type[T] | TypeAliasType | GenericAlias
7
15
  type InputType[T] = TypeDef[T] | UnionType
8
16
  type TypeInfo[T] = InputType[T] | Callable[..., T] | Iterable[TypeInfo[T]]
9
17
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "python-injection"
3
- version = "0.10.3"
3
+ version = "0.10.4"
4
4
  description = "Fast and easy dependency injection framework."
5
5
  license = "MIT"
6
6
  authors = ["remimd"]