Skip to content

Accept AsyncIterables being passed to Response#341

Closed
mjsir911 wants to merge 1 commit into
pallets:mainfrom
mjsir911:fix_response_typing
Closed

Accept AsyncIterables being passed to Response#341
mjsir911 wants to merge 1 commit into
pallets:mainfrom
mjsir911:fix_response_typing

Conversation

@mjsir911

@mjsir911 mjsir911 commented May 20, 2024

Copy link
Copy Markdown
Contributor

Fixes pallets/flask#5322

Checklist:

  • Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
  • Add or update relevant docs, in the docs folder and in code.
  • Add an entry in CHANGES.rst summarizing the change and linking to the issue.
  • Add .. versionchanged:: entries in any relevant code docs.
  • Run pre-commit hooks and fix any issues.
  • Run pytest and tox, no tests failed.

@mjsir911

Copy link
Copy Markdown
Contributor Author

I want to add tests for this somehow

@mjsir911
mjsir911 force-pushed the fix_response_typing branch 3 times, most recently from a6bf4ae to c9323e1 Compare May 20, 2024 14:43
@mjsir911
mjsir911 marked this pull request as ready for review May 20, 2024 14:43
@mjsir911

mjsir911 commented May 20, 2024

Copy link
Copy Markdown
Contributor Author

@davidism ready for review, would like extra eyes on the test specifically

@mjsir911

Copy link
Copy Markdown
Contributor Author

Add an entry in CHANGES.rst summarizing the change and linking to the issue.

I've been told I don't need to do this and it will be gotten to later.

@mjsir911
mjsir911 force-pushed the fix_response_typing branch from c9323e1 to 3df3018 Compare May 20, 2024 18:41
@mjsir911

mjsir911 commented May 20, 2024

Copy link
Copy Markdown
Contributor Author

It would be cool if ResponseValue in typing.py could be updated too but adding AsyncIterator[bytes] or similar causes a lot of errors.

@mjsir911
mjsir911 force-pushed the fix_response_typing branch 4 times, most recently from bea08c1 to 88f728b Compare May 21, 2024 01:57
@CoolCat467

Copy link
Copy Markdown

Is there anything stopping this from being merged?

@pgjones

pgjones commented Nov 14, 2024

Copy link
Copy Markdown
Member

Merged manually in a80358b to fix conflict

@pgjones pgjones closed this Nov 14, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ResponseValue Typing issue

3 participants