anydi 0.22.0__py3-none-any.whl → 0.37.4__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/__init__.py CHANGED
@@ -1,20 +1,21 @@
1
1
  """AnyDI public objects and functions."""
2
2
 
3
- from typing import Any
4
-
5
- from ._container import Container, request, singleton, transient
6
- from ._module import Module, provider
7
- from ._scanner import injectable
8
- from ._types import Marker, Provider, Scope
9
-
10
-
11
- def dep() -> Any:
12
- """A marker for dependency injection."""
13
- return Marker()
14
-
3
+ from typing import Any, cast
4
+
5
+ from ._container import (
6
+ Container,
7
+ Module,
8
+ injectable,
9
+ provider,
10
+ request,
11
+ singleton,
12
+ transient,
13
+ )
14
+ from ._provider import Provider
15
+ from ._types import Marker, Scope
15
16
 
16
17
  # Alias for dependency auto marker
17
- auto = dep
18
+ auto = cast(Any, Marker())
18
19
 
19
20
 
20
21
  __all__ = [
@@ -23,7 +24,6 @@ __all__ = [
23
24
  "Provider",
24
25
  "Scope",
25
26
  "auto",
26
- "dep",
27
27
  "injectable",
28
28
  "provider",
29
29
  "request",