mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
10 lines
266 B
Python
10 lines
266 B
Python
from collections.abc import Callable
|
|
from typing import TypeVar
|
|
from typing_extensions import ParamSpec
|
|
|
|
__all__ = ("to_thread",)
|
|
_P = ParamSpec("_P")
|
|
_R = TypeVar("_R")
|
|
|
|
async def to_thread(func: Callable[_P, _R], /, *args: _P.args, **kwargs: _P.kwargs) -> _R: ...
|