-
Notifications
You must be signed in to change notification settings - Fork 208
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
Python 3.9 typing
raises error on Generic
usage in AsyncToSync
class
#392
Comments
typing
only breaks on Generic
usagetyping
raises error on Generic
usage in AsyncToSync
class
I cannot replicate this on 3.9 - once I correct the typo in your command and type Can I get a list of all the packages installed in the environment you are trying to install it in, the logs from the installation process, and an idea of where your Python installation is sourced from? |
Sure, thanks for the help and yeah, sorry for autocorrect. Wants to turn asgiref -> aspired. We resolved our issue by pinning asgiref to v6, but imagine others are going to encounter this one. The base image here is Here is a
Full stack trace from our testing pipeline is:
In my most recent testing on my local, the error crops up via Django manage.py command (I apologize, the original post was inaccurate as I realize I was importing from inside a Django-initiated shell_plus session):
It appears that the traces both go through |
Found it - you're using an old |
Fixed in db2e53a and released as 3.7.1. |
Beautiful! Many thanks @andrewgodwin ! 👏 |
Issue
asgiref
3.7.0 raises aTypeError
when loading certain components under Python 3.9. On import, thetyping
module complains in the following manner:Steps to Reproduce
from asgiref.sync import sync_to_async
asgiref/asgiref/sync.py
Line 130 in 89cfe10
The text was updated successfully, but these errors were encountered: