Skip to content

Use NumPy 2.4.6 for mypy#9705

Open
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:lint_numpy
Open

Use NumPy 2.4.6 for mypy#9705
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:lint_numpy

Conversation

@radarhere

Copy link
Copy Markdown
Member

NumPy 2.5.0 has been released. This has caused mypy to start failing - https://github.com/python-pillow/Pillow/actions/runs/27917905477/job/82606392500#step:6:22

.tox/mypy/lib/python3.14/site-packages/numpy/__init__.pyi:737: error: Type
statement is only supported in Python 3.12 and greater  [syntax]
    type _Falsy = L[False, 0] | bool_[L[False]]
                                               ^
Found 1 error in 1 file (errors prevented further checking)

This is not a bug on the part of NumPy. 2.5.0 has its minimum Python version as 3.12.

This PR pins NumPy to 2.4.6 within the mypy requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant