Skip to content

Commit cf36b82

Browse files
authored
Merge pull request #29269 from meeseeksmachine/auto-backport-of-pr-29267-on-v3.10.x
Backport PR #29267 on branch v3.10.x (Exclude pylab from mypy checks)
2 parents 1af51a5 + 0fbc882 commit cf36b82

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ci/mypy-stubtest-allowlist.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Non-typed (and private) modules/functions
22
matplotlib\.backends\..*
33
matplotlib\.tests(\..*)?
4-
matplotlib\.pylab\..*
4+
matplotlib\.pylab(\..*)?
55
matplotlib\._.*
66
matplotlib\.rcsetup\._listify_validator
77
matplotlib\.rcsetup\._validate_linestyle

pyproject.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ enable_incomplete_feature = [
222222
]
223223
exclude = [
224224
#stubtest
225-
".*/matplotlib/(sphinxext|backends|testing/jpl_units)",
225+
".*/matplotlib/(sphinxext|backends|pylab|testing/jpl_units)",
226226
#mypy precommit
227227
"galleries/",
228228
"doc/",
@@ -234,7 +234,9 @@ exclude = [
234234
"lib/matplotlib/tests/",
235235
# tinypages is used for testing the sphinx ext,
236236
# stubtest will import and run, opening a figure if not excluded
237-
".*/tinypages"
237+
".*/tinypages",
238+
# pylab's numpy wildcard imports cause re-def failures since numpy 2.2
239+
"lib/matplotlib/pylab.py",
238240
]
239241
files = [
240242
"lib/matplotlib",

0 commit comments

Comments
 (0)