Skip to content

Restrict WSGI constructors to keyword arguments - #478

Merged
anuraaga merged 2 commits into
connectrpc:mainfrom
anuraaga:wsgi-asterisk
Nov 20, 2026
Merged

anuraaga merged 2 commits into
connectrpc:mainfrom
anuraaga:wsgi-asterisk

Conversation

@anuraaga

Copy link
Copy Markdown
Collaborator

This was a miss, _server_sync.py already restricted correctly but unfortunately not the stubs. I don't think there is a type checking way to deal with it in a deprecation manner, it would need to be a complex runtime shim. We will call this out in notes and I feel the probability of positional arguments in user code is low. I can see interceptors maybe, a integer read max bytes almost acts like a * otherwise in practical terms. I feel/hope the signatures (a bag of random options) would have portrayed the keyword-only intent already to most users even without the *.

Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
@anuraaga
anuraaga requested a review from a team November 19, 2026 04:57
@anuraaga
anuraaga merged commit 7a1282b into connectrpc:main Nov 20, 2026
26 checks passed
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.

2 participants