-
-
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
Positional-only parameters with python 3.10.7 (and numpy) (fixed in 0.981) #13627
Positional-only parameters with python 3.10.7 (and numpy) (fixed in 0.981) #13627
Comments
This might be related to
Source: https://github.com/python/cpython/blob/v3.10.7/Misc/NEWS.d/3.10.7.rst Related pull requests/issues:
|
Looks like this was already fixed in #13500 (unreleased) |
Yup, a mypy release with the fix will be out soon (might be included in mypy 0.980, if not it will be in mypy 0.990). Edit: fix was included in 0.981 and newer |
To work around python/mypy#13627
Any known workaround for this? |
Pin Python to 3.10.6 (not 3.10.7). |
* Try alternative xxhash implementation Hopefully it can compile on non-x86 arch * Pin formatting CI python version To work around python/mypy#13627 * Revert adding pypy to builds * Add includes in makefile as well
* Remove tornado submodule * Rename packages/stlite-kernel to packages/kernel * Add submodule packages/kernel/py/tornado * Replace @stlite/stlite-kernel usage with @stlite/kernel * Replace stlite-kernel with kernel in the CI workflows * Update mypy due to python/mypy#13627
Running the linting with the latest image fails as it raises issues with mypy See: python/mypy#13627 Change-Id: I98bb6e713f3e32d7dae0ca0398a3e7632e0e886d
The older MyPy version had a bug. See python/mypy#13627
The older MyPy version had a bug. See python/mypy#13627
python/mypy#13627 now causes spurious errors involving numpy but another type issue is solved.
If you're running into this, use mypy 0.981 or newer or downgrade to Python 3.10.6 |
Needed this bug to be fixed: python/mypy#13627 This also incidentally fixed the mypy bug in csv_exporter.py
* Python 3.10 Performance gains go brrr * Add missing SAML deps * Add missing dep to dockerfile * Update mypy to 0.981 for 3.10.7 compatibility Needed this bug to be fixed: python/mypy#13627 This also incidentally fixed the mypy bug in csv_exporter.py * bump to 3.10.10
Bug Report
After upgrading to python 3.10.7 from 3.10.6 mypy is reporting errors on numpy .pyi files when positional only parameters syntax is present. This error should only get triggered when using versions of python older than 3.8. After rolling back to python 3.10.6 no errors are being reported.
To Reproduce
(Write your steps here:)
mypy something_using_numpy.py
Expected Behavior
It should pass without any problem
Actual Behavior
Your Environment
The text was updated successfully, but these errors were encountered: