Commit a05b084
committed
Add more explicit error message for [r,theta]grids
mypy was unhappy because the first parameter in each case (angles/radii) is optional for the pyplot wrapper but required for the set_[r,theta]grids axes methods. The variable is optional because the pyplot version acts as both the getter and the setter, but the type is not sufficiently narrowed for mypy. If passed None, the underlying setters would error, though deeper in the stack either in numpy or upon setting ticks. Just be a bit more explicit and fail early with a targetted error message1 parent 73a73f9 commit a05b084
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2117 | 2117 | | |
2118 | 2118 | | |
2119 | 2119 | | |
| 2120 | + | |
| 2121 | + | |
2120 | 2122 | | |
2121 | 2123 | | |
2122 | 2124 | | |
| |||
2190 | 2192 | | |
2191 | 2193 | | |
2192 | 2194 | | |
| 2195 | + | |
| 2196 | + | |
2193 | 2197 | | |
2194 | 2198 | | |
2195 | 2199 | | |
| |||
0 commit comments