-
-
Notifications
You must be signed in to change notification settings - Fork 926
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(asgi): Errors caused by not being able to detect cythonized corou…
…tine functions (#1657) This patch provides workarounds for the fact that cythonized coroutine functions can not be detected. In several places in the framework, we rely on being able to introspect a passed callable in order to determine how to wrap it or call it later. As a workaround, this patch gives the caller a way to explicitly indicate that the framework may assume a coroutine function. Also, we relax our type checking so that we don't raise an error on Cython functions; the app developer will simply have to be trusted to pass the correct type of function if they are using Cython.
- Loading branch information
Showing
18 changed files
with
488 additions
and
76 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
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
Oops, something went wrong.