Skip to content

Commit 0fbc882

Browse files
tacaswellmeeseeksmachine
authored andcommitted
Backport PR #29267: Exclude pylab from mypy checks
1 parent 1af51a5 commit 0fbc882

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy