Commit 37c7620
committed
Deprecate more rc validators.
- validate_bool_maybe_none is now unused; if we really need it back
we'd make it private and I'd anyways rather add machinery so that
one can just specify it as `[bool, None]` (or `Optional[bool]`) in
_prop_validators.
- validate_hinting will become a plain list after the deprecation
period.
- validate_movie_writer makes it impossible to set movie.writer to
a third-party animation writer, because that third-party module
will necessarily first import matplotlib before being able to
register its writer, and thus the matplotlibrc file will be parsed
before the writer is registered. In any case,
`MovieWriterRegistry.__getitem__` also raises an informative error
on unknown writer names, which should be enough, so let's just
accept any string.1 parent 4db2b2b commit 37c7620
3 files changed
Lines changed: 17 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
225 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| |||
646 | 647 | | |
647 | 648 | | |
648 | 649 | | |
| 650 | + | |
649 | 651 | | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
650 | 657 | | |
651 | 658 | | |
652 | 659 | | |
| |||
663 | 670 | | |
664 | 671 | | |
665 | 672 | | |
| 673 | + | |
666 | 674 | | |
667 | 675 | | |
668 | 676 | | |
| |||
1133 | 1141 | | |
1134 | 1142 | | |
1135 | 1143 | | |
1136 | | - | |
| 1144 | + | |
1137 | 1145 | | |
1138 | 1146 | | |
1139 | 1147 | | |
| |||
1452 | 1460 | | |
1453 | 1461 | | |
1454 | 1462 | | |
1455 | | - | |
| 1463 | + | |
1456 | 1464 | | |
1457 | 1465 | | |
1458 | 1466 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 128 | + | |
| 129 | + | |
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
| |||
0 commit comments