mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-11-28 09:03:00 +08:00
Use PEP 570 syntax in stdlib (#11250)
This commit is contained in:
1 parent
63737acac6
commit
470a13ab09
139 files changed
+2412
-2371
No files matched your search
@@ -6,4 +6,4 @@ __all__ = ("to_thread",)
|
||||
_P = ParamSpec("_P")
|
||||
_R = TypeVar("_R")
|
||||
|
||||
async def to_thread(__func: Callable[_P, _R], *args: _P.args, **kwargs: _P.kwargs) -> _R: ...
|
||||
async def to_thread(func: Callable[_P, _R], /, *args: _P.args, **kwargs: _P.kwargs) -> _R: ...
|
||||
Reference in new issue
Block a user