mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-06-08 23:53:14 +03:00
Add type info for _cwiring module
This commit is contained in:
parent
b9df88eea7
commit
1271d0fa79
23
src/dependency_injector/_cwiring.pyi
Normal file
23
src/dependency_injector/_cwiring.pyi
Normal file
|
@ -0,0 +1,23 @@
|
|||
from typing import Any, Awaitable, Callable, Dict, Tuple, TypeVar
|
||||
|
||||
from .providers import Provider
|
||||
|
||||
T = TypeVar("T")
|
||||
|
||||
def _sync_inject(
|
||||
fn: Callable[..., T],
|
||||
args: Tuple[Any, ...],
|
||||
kwargs: Dict[str, Any],
|
||||
injections: Dict[str, Provider[Any]],
|
||||
closings: Dict[str, Provider[Any]],
|
||||
/,
|
||||
) -> T: ...
|
||||
async def _async_inject(
|
||||
fn: Callable[..., Awaitable[T]],
|
||||
args: Tuple[Any, ...],
|
||||
kwargs: Dict[str, Any],
|
||||
injections: Dict[str, Provider[Any]],
|
||||
closings: Dict[str, Provider[Any]],
|
||||
/,
|
||||
) -> T: ...
|
||||
def _isawaitable(instance: Any) -> bool: ...
|
Loading…
Reference in New Issue
Block a user