Skip to content

Commit 44b9b5a

Browse files
authored
Merge pull request #1588 from scipy/mypy-2.0
2 parents d192f2e + 1ae7d92 commit 44b9b5a

2 files changed

Lines changed: 148 additions & 111 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type = [
6363
"pytest==9.0.3", # needed for `_lib._array_api.make_xp_pytest_*`
6464
"matplotlib==3.10.9", # needed for `spatial._plotutils` and `stats._fit.FitResult.plot`
6565
"basedpyright==1.39.3",
66-
"mypy[faster-cache]==1.20.2",
66+
"mypy[faster-cache]==2.0.0",
6767
"pyrefly==0.63.1",
6868
"stubdefaulter>=0.1.0",
6969
"ty==0.0.33",
@@ -114,12 +114,10 @@ default = { extend-ignore-identifiers-re = ['ND|Nd|Theis|TtestResult|SeQUeNCe']
114114
[tool.mypy]
115115
strict = true
116116
strict_equality_for_none = true
117+
allow_redefinition = true
117118
# required by repo-review
118119
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
119120
warn_unreachable = false
120-
# experimental
121-
local_partial_types = true
122-
allow_redefinition_new = true
123121

124122
# pyright / basedpyright
125123

0 commit comments

Comments
 (0)