Visitar URL original
better `HTTPException.get_response` annotation by davidism · Pull Request #3072 · pallets/werkzeug · GitHub
Skip to content

better HTTPException.get_response annotation - #3072

Merged
davidism merged 1 commit into
stablefrom
exception-annotation
Nov 27, 2025
Merged

davidism merged 1 commit into
stablefrom
exception-annotation

Conversation

@davidism

Copy link
Copy Markdown
Member

Use overloads to indicate when a WSGI or sans-IO ASGI response is returned. Clarify in docs as well. Sphinx can't find the WSGIResponse and SansIOResponse aliases to create links in the signature (and sansio purposefully doesn't have docs yet), but the link in the docstring works.

fixes #3056

@davidism
davidism merged commit b11713e into stable Nov 27, 2025
13 checks passed
@davidism
davidism deleted the exception-annotation branch November 27, 2025 16:05
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant