Skip to content

Fix functools.partial async handlers for classmethods - #1106

Merged
JayH5 merged 5 commits into
Kludex:masterfrom
vladmunteanu:fix-partial-async-handlers
Feb 2, 2021
Merged

JayH5 merged 5 commits into
Kludex:masterfrom
vladmunteanu:fix-partial-async-handlers

Conversation

@vladmunteanu

@vladmunteanu vladmunteanu commented Dec 2, 2020

Copy link
Copy Markdown
Contributor

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

@JayH5 JayH5 left a comment

Copy link
Copy Markdown
Contributor

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?

Comment thread starlette/routing.py Outdated
@vladmunteanu

Copy link
Copy Markdown
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