|
90 | 90 |
|
91 | 91 | from numpy.typing import ArrayLike |
92 | 92 | from typing import ( |
93 | | - Any, Callable, Literal, Sequence, Iterable, Type, Generator |
| 93 | + Any, Callable, Hashable, Literal, Sequence, Iterable, Type, Generator |
94 | 94 | ) |
95 | 95 |
|
96 | 96 | from matplotlib.axis import Tick |
97 | | - from matplotlib.axes import SubplotBase |
98 | 97 | from matplotlib.axes._base import _AxesBase |
99 | 98 | from matplotlib.backend_bases import RendererBase, Event |
100 | 99 | from matplotlib.cm import ScalarMappable |
@@ -1578,9 +1577,9 @@ def subplot_mosaic( |
1578 | 1577 | empty_sentinel: Any = '.', |
1579 | 1578 | subplot_kw: dict[str, Any] | None = None, |
1580 | 1579 | gridspec_kw: dict[str, Any] | None = None, |
1581 | | - per_subplot_kw: dict[Any, dict[str, Any]] | None = None, |
| 1580 | + per_subplot_kw: dict[Hashable, dict[str, Any]] | None = None, |
1582 | 1581 | **fig_kw |
1583 | | -) -> tuple[Figure, dict[Any, matplotlib.axes.Axes]]: |
| 1582 | +) -> tuple[Figure, dict[Hashable, matplotlib.axes.Axes]]: |
1584 | 1583 | """ |
1585 | 1584 | Build a layout of Axes based on ASCII art or nested lists. |
1586 | 1585 |
|
@@ -2189,7 +2188,7 @@ def thetagrids( |
2189 | 2188 |
|
2190 | 2189 |
|
2191 | 2190 | @_api.deprecated("3.7", pending=True) |
2192 | | -def get_plot_commands() -> Generator[str, None, None]: |
| 2191 | +def get_plot_commands() -> list[str]: |
2193 | 2192 | """ |
2194 | 2193 | Get a sorted list of all of the plotting commands. |
2195 | 2194 | """ |
|
0 commit comments