-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Supporting Python 3.9 #9761
Comments
I wouldn't make all of these hard requirements. I'd very much like to see a mypy release with binary wheels for 3.9 even before all of these items are addressed. |
Well, we still have the 0.790 release branch so we could just create wheels for that and push those. (Or make whatever tweak are necessary on that branch and push 0.791.) |
@intgr Agreed that I wouldn't block an otherwise scheduled release on this, but there isn't currently a scheduled release / at this point the checklist^ isn't much additional effort to complete. If someone with the ability to release is interested in adding 3.9 wheels to 0.790, you'll need to cherry pick #9552 and #9562 (and merge the aforementioned mypyc wheel repo change). Note mypyc is broken in the 0.790 sdist so you should cherry pick #9587 as well (see #9290 (comment)). |
Here's hoping someone wants to take a stab! |
We hopefully have a full release soonish, but again there are a lot of issues to address with Dropbox internal repos (previously these have mostly been typeshed issues). Otherwise there are no blockers for a new release. I haven't had a lot of time to dedicate to mypy in the past weeks but I'm trying to carve out more time for it before the end of the year. |
Mypy looks to be chugging along okay on 3.9 but (as expected, I understand this support has not been implemented yet) throws a bunch of Edit: have resorted to set -o pipefail && python3 -m mypy | grep --color=always -E -v '(tuple|dict|list|set)" is not subscriptable' though this will return a false-positive exit code if the false-positive on type-hinting generics is the only discovered issue. |
@bsolomon1124 I don't know if that's of any help, but you could try installing the latest mypy commit with: pip install -U git+git://github.com/python/mypy.git@master # or replace `master` with commit hash The |
Since my checklist in python#9761 is almost complete, it's time to check off this box as well.
Just to follow up, if people want 3.9 wheels from latest master, they're now available at https://github.com/mypyc/mypy_mypyc-wheels/releases/latest |
Since my checklist in #9761 is almost complete, it's time to check off this box as well. Co-authored-by: hauntsaninja <>
Can we get 3.10 wheels? :-)--
--Guido (mobile)
|
Not easily right now. We'd need 3.10 support in https://github.com/pypa/manylinux and https://github.com/joerick/cibuildwheel. But once that happens, it should be a two-liner. |
Since my checklist in #9761 is almost complete, it's time to check off this box as well. Co-authored-by: hauntsaninja <>
mypy 0.800 has been released and includes all of^ |
Woho! Looking forward to try it out! |
Hey all- cross-posting my comment from #9564 in case anyone else has had issues with PEP 585 in type aliases on |
The next release needs to support Python 3.9
Here's my checklist of what's left:
To clarify the state of support for users stumbling upon this issue, mypy 0.790 will mostly work with Python 3.9.
There are two caveats to running mypy with 3.9:
list[int]
syntax without mypy complaining,Note that typeshed in 0.790 has pretty good support for Python 3.9, so using new stdlib functionality should work fine.
PS: if you're getting
error: syntax error in type comment
with Python 3.9, it's because you're using a really old mypy and you should upgrade to a recent release.The text was updated successfully, but these errors were encountered: