Commit f6dc5bc
committed
Simplify parameter handling in FloatingAxesBase.
- `grid_helper` can just become a standard kwonly arg.
- `GridHelperCurveLinear` is the only class that defines `get_boundary`,
so in practice the hasattr check is the same as an isinstance check.
(It is technically possible that someone wrote their own
GridHelperCurveLinear-like subclass with the same API, but let's not
overly worry about that... and they can always still completely
inherit GridHelperCurveLinear and full override everything if really
needed.)1 parent 8a8dd90 commit f6dc5bc
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
321 | 317 | | |
322 | 318 | | |
323 | 319 | | |
| |||
0 commit comments