mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-06-22 06:23:12 +03:00
24 lines
581 B
Python
24 lines
581 B
Python
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: ...
|