forked from matplotlib/matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit fec45c6
MNT: Prefer capitalized logging levels (matplotlib#30339)
* MNT: Prefer capitalized logging levels
matplotlib#30302 just introduced literals for the log levels. Previously, the
situation was a bit vague: While the docstring described the levels
as all lowercase, in fact any casing is accepted. This PR changes the
preferred casing to be all-capitalized in analogy to the logging
standard library, which only supports this casing. Lowercase remains
supported because it's not worth an API breakage.
We might later consider to also accept logging levels directly, i.e.
`logging.DEBUG` to be more congruent with the logging library. But this
can be done any time. It's important to get this PR in soon to not
release the typing Literal in lowercase form.
* Update lib/matplotlib/__init__.py
Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>
---------
Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>1 parent 7a0964c commit fec45c6
File tree
6 files changed
+13
-9
lines changed- doc
- devel
- install
- users
- lib/matplotlib
6 files changed
+13
-9
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
215 | 215 |
| |
216 | 216 |
| |
217 | 217 |
| |
218 | - | ||
218 | + | ||
219 | 219 |
| |
220 | 220 |
| |
221 | 221 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 | - | ||
26 | + | ||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
182 | - | ||
182 | + | ||
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
367 | 367 |
| |
368 | 368 |
| |
369 | 369 |
| |
370 | - | ||
370 | + | ||
371 | 371 |
| |
372 | 372 |
| |
373 | 373 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
292 | 292 |
| |
293 | 293 |
| |
294 | 294 |
| |
295 | - | ||
296 | - | ||
295 | + | ||
296 | + | ||
297 | 297 |
| |
298 | 298 |
| |
299 | 299 |
| |
300 | 300 |
| |
301 | 301 |
| |
302 | 302 |
| |
303 | 303 |
| |
304 | - | ||
305 | - | ||
304 | + | ||
305 | + | ||
306 | + | ||
307 | + | ||
308 | + | ||
309 | + | ||
306 | 310 |
| |
307 | 311 |
| |
308 | 312 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
96 | - | ||
96 | + | ||
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
|
0 commit comments