Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commit58169e5
Add some types to _mathtext.py
Mypy 1.16.0 flags errors here:lib/matplotlib/_mathtext.py:2531: error: "Node" has no attribute "width" [attr-defined]lib/matplotlib/_mathtext.py:2608: error: List item 0 has incompatible type "Kern"; expected "Hlist | Vlist" [list-item]The check for the attribute _metrics is equivalent to checking for aninstance of Char, since only Char and its subclasses set self._metrics.Mypy infers an unnecessarily tight type list[Hlist | Vlist] forspaced_nucleus so we give it a more general one.1 parent1fea704 commit58169e5
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2527 | 2527 |
| |
2528 | 2528 |
| |
2529 | 2529 |
| |
2530 |
| - | |
| 2530 | + | |
2531 | 2531 |
| |
2532 | 2532 |
| |
2533 | 2533 |
| |
| |||
2603 | 2603 |
| |
2604 | 2604 |
| |
2605 | 2605 |
| |
2606 |
| - | |
| 2606 | + | |
2607 | 2607 |
| |
2608 | 2608 |
| |
2609 | 2609 |
| |
|
0 commit comments
Comments
(0)