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

Added coroutine detection shims for Python 3.12 #360

Merged
merged 3 commits into from Dec 14, 2022

Conversation

carltongibson
Copy link
Member

Refs: python/cpython#99247

This would be needed for Django 4.2, which would support PY312 on release of that.

Adds markcoroutinefunction() and iscoroutinefunction shims, and makes use of those internally.

@carltongibson
Copy link
Member Author

Lint failure is a pre-commit fetching from GitLab error.

@carltongibson
Copy link
Member Author

carltongibson commented Dec 13, 2022

I'm hoping the Python PR can make it into the next Python 3.12 alpha.

Ideally we could get this into an asgiref version for the 4.2a1 release, due Jan 16th. //cc @felixxm

@felixxm
Copy link
Member

felixxm commented Dec 13, 2022

Ideally we could get this into an asgiref version for the 4.2a1 release, due Jan 16th. //cc @felixxm

🤞

Copy link
Member

@andrewgodwin andrewgodwin left a comment

Choose a reason for hiding this comment

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

Looks very reasonable!

@carltongibson

This comment was marked as resolved.

@carltongibson carltongibson merged commit 36f37c9 into main Dec 14, 2022
@carltongibson carltongibson deleted the iscoroutinefunction-shim branch December 14, 2022 20:09
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.

None yet

3 participants