Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix typing for abort to accept Response object#201

Open
touilleMan wants to merge 1 commit into
pallets:main from
touilleMan:fix-abort-typing
Open

Fix typing for abort to accept Response object #201
touilleMan wants to merge 1 commit into
pallets:main from
touilleMan:fix-abort-typing

Conversation

@touilleMan

@touilleMan touilleMan commented Oct 25, 2022

Copy link
Copy Markdown
Contributor

fixes #200

Copy link
Copy Markdown
Contributor Author

see #202 for the CI failing :/

Comment thread src/quart/helpers.py


def abort(code: int, *args: Any, **kwargs: Any) -> NoReturn: # type: ignore[misc]
def abort(code: int | Response, *args: Any, **kwargs: Any) -> NoReturn:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think Werkzeug's aborter can accept a Quart Response. I think this part of the API is unhelpful - what use case do you have in mind?

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

Reviewers

@pgjones pgjones pgjones left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

abort typing doesn't accept Response as a valid parameter

AltStyle によって変換されたページ (->オリジナル) /