Closed as not planned
Closed as not planned
Description
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
/Users/stephane/.pyenv/versions/3.10.7/lib/python3.10/site-packages/numpy/__init__.pyi:636:48: error: Positional-only parameters are only supported in Python 3.8 and greater [syntax]
Found 1 error in 1 file (errors prevented further checking)
Your Environment
- mypy==0.971
- Mypy command-line flags: none
- Mypy configuration options:
python_version=3.10
sqlite_cache=True
namespace_packages=True
ignore_missing_imports=True
follow_imports=silent
show_column_numbers=True
check_untyped_defs=True
show_error_codes=True
- Python 3.10.7 (3.10.6 is working fine).
- macOS 12.5.1, Apple CPU
- numpy==1.23.2