Skip to content

Commit

Permalink
MAINT: bump mypy to 1.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham committed Feb 8, 2025
1 parent 11cc665 commit 65f7473
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies:
- hypothesis
# For type annotations
- typing_extensions>=4.2.0 # needed for python < 3.10
- mypy=1.14.1
- mypy=1.15.0
- orjson # makes mypy faster
# For building docs
- sphinx>=4.5.0
Expand Down
4 changes: 1 addition & 3 deletions numpy/typing/tests/data/mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ implicit_reexport = False
pretty = True
disallow_any_unimported = True
disallow_any_generics = True
; https://github.com/python/mypy/issues/15313
disable_bytearray_promotion = true
disable_memoryview_promotion = true
strict_bytes = True
2 changes: 1 addition & 1 deletion requirements/test_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cffi; python_version < '3.10'
# For testing types. Notes on the restrictions:
# - Mypy relies on C API features not present in PyPy
# NOTE: Keep mypy in sync with environment.yml
mypy==1.14.1; platform_python_implementation != "PyPy"
mypy==1.15.0; platform_python_implementation != "PyPy"
typing_extensions>=4.2.0
# for optional f2py encoding detection
charset-normalizer

0 comments on commit 65f7473

Please sign in to comment.