-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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.10 tracking issue #10201
Comments
Here's another important part to 3.10 support: #9880 |
Not sure if this ought to be mentioned here, but test-requirements.txt pins the pytest dependency to <6.2.0, because they dropped support for Python 3.5 with their 6.2 release. However, the tests currently fail with the Python 3.10 beta due to this bug. I've submitted a PR to backport the fix to pytest 6.1.x but it was rejected because they have a policy of not backporting to versions prior to the latest minor release. So I guess, assuming dropping Python 3.5 support is still not an option for mypy, that the dependencies would somehow have to be split in such a way that pytest 6.1.x is used with Python 3.5 and the latest pytest can be used for Python 3.6 and up. This particular bug was fixed in pytest 6.2.4, for what it's worth. |
Could you use PEP 508 markers in the requirements file to specify the older pytest for 3.5 and a newer version for 3.6 and later? Something like |
Perhaps. I'm not sure what the best way to do this "split" would be, to be honest, I just wanted to signal here that something may have to be done about this. |
Python 3.10 also adds |
@freundTech Ah, sorry, I had not seen that. Yes, in that case it can just be set to >= 6.2.4 (to include the fix for this particular issue). Thanks! |
|
I think the |
Likely because python/typeshed#5044 made it onto mypy master |
Another feature: PEP 612 (Parameter Specification Variables) #8645 |
Now that Python 3.10 is out, we should enable CI using the release version. A few tests seem to be failing, however, and may need to be fixed first. Anybody want to help with this (#11294)? Once CI is up, we should start building 3.10 wheels in https://github.com/mypyc/mypy_mypyc-wheels. |
Could a preliminary version for python 3.10 be released?
What do you think? |
I'd like to get this out there, and maybe this is just venting some frustration. But I find it strange that Python 3.10 was released and considered stable by the Python foundation when the associated tool chain doesn't support it. This breaks quite a few things without a clear heads up and finding information on this topic is scattered at best. I wouldn't mind hacky CI pipelines pulling But the roadmap on mypy-lang.org is a dead link: https://github.com/python/mypy/blob/master/ROADMAP.md. I really hope I'm overreacting and that there's a parameter I'm missing and all is well. |
I'm also eagerly awaiting MyPy support for If you need your code to be 100% statically typed, then you can't use |
The breakage in my case was "simple", the I welcome Edit: Looks like it's being brought back in #11828 |
Should we check pattern matching as complete as #10191 is merged? |
It looks like all that is left here is PEP 612 support, which can be tracked in #8645, and mypyc does not support match statements, which I think is an issue better tracked on the mypyc issue tracker. I suggest we close this issue. |
Here's an issue for tracking the current state of mypy on CPython 3.10
CPython version: 3.10.0
mypy version: latest master (e6b91bd)
Dependencies:
virtualenv<20
, and it looks like only virtualenv >=20 is still in active development. (Virtualenv pinned to <20 #10407)Tests:
error: invalid syntax
are nowerror: expected ':'
error: unexpected EOF while parsing
are nowerror: '(' was never closed
mypy/typeshed/stdlib/types.pyi:334: error: Name '_NotImplementedType' is not defined
(Small fixes for Python 3.10 typeshed#5044)Features
match
statements fails with an exception mypyc/mypyc#911)types.Union
) doesn't work on generic bounds #10949Breaking changes
_PyObject_HasAttrId
has been removed from CPython (bpo-41991: Remove _PyObject_HasAttrId cpython#22629). PR Fix mypyc failing to compile on CPython 3.10.0a6 #10202.distutils
, which is deprecated and will be removed in python 3.12 (Only import distutils if it is needed #10203).Misc
The text was updated successfully, but these errors were encountered: