Skip to content

asyncio: fix create_server overloads - #16170

Draft
aryansk wants to merge 1 commit into
python:mainfrom
aryansk:codex/typeshed-create-server-port-none
Draft

asyncio: fix create_server overloads#16170
aryansk wants to merge 1 commit into
python:mainfrom
aryansk:codex/typeshed-create-server-port-none

Conversation

@aryansk

@aryansk aryansk commented Aug 9, 2026

Copy link
Copy Markdown

Add the missing host-and-null-port overload to the asyncio event-loop stubs while keeping the abstract and concrete interfaces aligned.

Fixes #16157

Agent used: Codex

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

websockets (https://github.com/aaugustin/websockets)
+ src/websockets/asyncio/server.py:672: error: Unused "type: ignore" comment  [unused-ignore]

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.

BaseEventLoop.create_server overload doesn't allow passing host with port=None

1 participant