Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update setup.py Allow for h11 V. 013. Facilitates installation alongside latest version of Uvicorn. * Bump h11 pin to 0.14 * Remove reassignment of `event` to prevent type failure * Add an explicit check for `None` in `_send_event` This also reverted commit f9a9847 which was dropped during rebase with the `master` branch. We probably do not want to suggest that passing `None` to the `write` function is proper. The short circuit there (return on empty buffer) should be targeted to an empty byte array. * Replace h11 event with new base class type; add stubs for PAUSED handling * Lint; add cast for return type * apply unasync * do not attempt to handle paused in _receive_event * Bump h11 upper bound to 0.15 * Update types to support h11 0.14.0 * Bump minimum h11 requirement to 0.13 0.12 does not define `h11.Event` * Update `_send_event` to narrow accepted types * Lint Co-authored-by: Francis Secada <francis.secada@gmail.com> Co-authored-by: Tom Christie <tom@tomchristie.com> Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
- Loading branch information
1 parent
809f168
commit 4cf288e
Showing
3 changed files
with
43 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters