8000 Add overloads for `asyncio.sleep()`. by wch · Pull Request #7873 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Add overloads for asyncio.sleep(). #7873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 18, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Do the same for the >=3.10 path, as well
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
  • Loading branch information
AlexWaygood and JelleZijlstra authored May 18, 2022
commit fa4a013860729e2491936e01b2083463e0359b8e
2 changes: 1 addition & 1 deletion stdlib/asyncio/tasks.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ if sys.version_info >= (3, 10):
@overload
async def sleep(delay: float) -> None: ...
@overload
async def sleep(delay: float, result: _T = ...) -> _T: ...
async def sleep(delay: float, result: _T) -> _T: ...
@overload
async def wait(fs: Iterable[_FT], *, timeout: float | None = ..., return_when: str = ...) -> tuple[set[_FT], set[_FT]]: ... # type: ignore[misc]
@overload
Expand Down
0