Skip to content

Commit 1271d0f

Browse files
committed
Add type info for _cwiring module
1 parent b9df88e commit 1271d0f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/dependency_injector/_cwiring.pyi

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from typing import Any, Awaitable, Callable, Dict, Tuple, TypeVar
2+
3+
from .providers import Provider
4+
5+
T = TypeVar("T")
6+
7+
def _sync_inject(
8+
fn: Callable[..., T],
9+
args: Tuple[Any, ...],
10+
kwargs: Dict[str, Any],
11+
injections: Dict[str, Provider[Any]],
12+
closings: Dict[str, Provider[Any]],
13+
/,
14+
) -> T: ...
15+
async def _async_inject(
16+
fn: Callable[..., Awaitable[T]],
17+
args: Tuple[Any, ...],
18+
kwargs: Dict[str, Any],
19+
injections: Dict[str, Provider[Any]],
20+
closings: Dict[str, Provider[Any]],
21+
/,
22+
) -> T: ...
23+
def _isawaitable(instance: Any) -> bool: ...

0 commit comments

Comments
 (0)