Skip to content

Commit b1d7f1d

Browse files
committed
⬆️ bump mypy to 1.16.0
1 parent 9ef9d86 commit b1d7f1d

File tree

2 files changed

+93
-103
lines changed

2 files changed

+93
-103
lines changed

pyproject.toml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ dependencies = []
4848

4949
[dependency-groups]
5050
numpy = ["numtype[numpy]"]
51-
lint = ["ruff>=0.11.10"]
51+
lint = ["ruff>=0.11.12"]
5252
pytest = [
5353
{include-group = "numpy"},
5454
"pytest>=8.3.5",
@@ -60,17 +60,17 @@ list_and_test = [
6060
]
6161
types = [
6262
{include-group = "pytest"},
63-
"types-setuptools>=80.7.0.20250516",
63+
"types-setuptools>=80.9.0.20250529",
6464
"types-tabulate>=0.9.0.20241207",
6565
]
6666
basedpyright = [
6767
{include-group = "numpy"},
6868
{include-group = "types"},
69-
"basedpyright>=1.29.1",
69+
"basedpyright>=1.29.2",
7070
]
7171
mypy = [
7272
{include-group = "types"},
73-
"mypy[faster-cache]>=1.15.0",
73+
"mypy[faster-cache]>=1.16.0",
7474
]
7575
typecheck = [
7676
{include-group = "basedpyright"},
@@ -111,23 +111,12 @@ skip-excluded-dirs = true
111111
[tool.mypy]
112112
mypy_path = "src"
113113
strict = true
114-
strict_bytes = true
115-
strict_concatenate = true
116-
local_partial_types = true
117-
enable_error_code = ["ignore-without-code", "truthy-bool"]
118-
disable_error_code = ["explicit-override"]
114+
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
119115
enable_incomplete_feature = ["PreciseTupleTypes"]
120-
disallow_any_explicit = false
121-
disallow_any_expr = false
122-
disallow_any_decorated = false
116+
allow_redefinition_new = true
117+
local_partial_types = true
123118
warn_incomplete_stub = true
124119
warn_unreachable = false
125-
# needed for stubtest, see https://github.com/python/mypy/issues/18744
126-
disable_bytearray_promotion = true
127-
disable_memoryview_promotion = true
128-
# basedmypy/mypy compat
129-
# bare_literals = false
130-
# default_return = false
131120

132121

133122
[tool.pyright]

0 commit comments

Comments
 (0)