Skip to content

remove redundant overload of asyncio.wait#15444

Merged
srittau merged 1 commit intopython:mainfrom
oconnor663:simplify_wait_overloads
Feb 21, 2026
Merged

remove redundant overload of asyncio.wait#15444
srittau merged 1 commit intopython:mainfrom
oconnor663:simplify_wait_overloads

Conversation

@oconnor663
Copy link
Contributor

Opening this draft PR to trigger mypy_primer.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood
Copy link
Member

Does the same apply to the overloads in the other sys.version_info branches?

@oconnor663 oconnor663 marked this pull request as ready for review February 21, 2026 20:11
@oconnor663
Copy link
Contributor Author

@AlexWaygood I don't think so. The the second overloads in the other branches are Awaitable in Task out, which doesn't conform to _FT in _FT out, and Awaitable is also broader than _FT's Future bound.

@oconnor663 oconnor663 changed the title EXPERIMENT: remove apparently redundant overloads of asyncio.wait remove redundant overload of asyncio.wait Feb 21, 2026
@srittau srittau merged commit 9cd3428 into python:main Feb 21, 2026
51 checks passed
@AlexWaygood
Copy link
Member

@AlexWaygood I don't think so. The the second overloads in the other branches are Awaitable in Task out, which doesn't conform to _FT in _FT out, and Awaitable is also broader than _FT's Future bound.

ah yeah, I missed that _FT has an upper bound -- sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants