Skip to content

Added coroutine detection shims for Python 3.12 - #360

Merged
carltongibson merged 3 commits into
mainfrom
iscoroutinefunction-shim
Dec 14, 2022
Merged

carltongibson merged 3 commits into
mainfrom
iscoroutinefunction-shim

Conversation

@carltongibson

Copy link
Copy Markdown
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
carltongibson force-pushed the iscoroutinefunction-shim branch from 2103179 to a6a4ca4 Compare December 13, 2022 10:36
@carltongibson

Copy link
Copy Markdown
Member Author

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

@carltongibson

carltongibson commented Dec 13, 2022 •

Copy link
Copy Markdown
Member Author

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

felixxm commented Dec 13, 2022

Copy link
Copy Markdown
Member

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

🤞

@andrewgodwin andrewgodwin left a comment

Copy link
Copy Markdown
Member

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 force-pushed the iscoroutinefunction-shim branch from 8c667a5 to 1689063 Compare December 14, 2022 20:06
@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.

3 participants