8000 Exclude pylab from mypy checks · matplotlib/matplotlib@0172751 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0172751

Browse files
committed
Exclude pylab from mypy checks
1 parent b358c98 commit 0172751

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ci/mypy-stubtest-allowlist.txt

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 2 deletions
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)
0