Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix functools.partial async handlers for classmethods #1106

Merged
merged 5 commits into from
Feb 2, 2021

Conversation

vladmunteanu
Copy link
Contributor

@vladmunteanu vladmunteanu commented Dec 2, 2020

This was my fault for not properly checking all of the cases when I added #984. Apparently, on Python 3.8, partials of classmethods are still not correctly identified as coroutines.

An attempt to fix #1107

Copy link
Member

@JayH5 JayH5 left a comment

Choose a reason for hiding this comment

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

Hey @vladmunteanu sorry for the slow response on this. If you're still interested in this change & around we could try squeeze this into a bugfix release soon?

starlette/routing.py Outdated Show resolved Hide resolved
@vladmunteanu
Copy link
Contributor Author

@JayH5 I'd really appreciate this being released, so I went with your suggestion to keep things simple.
Thanks again for looking into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Asynchronous classmethod handlers not recognized as coroutines if wrapped in functools.partial
2 participants