Skip to content

Commit 9957c39

Browse files
authored
Add type hint for fig_kw in subplots (matplotlib#31033)
Fixes matplotlib#31003
1 parent 83c3cbc commit 9957c39

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/matplotlib/pyplot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,7 @@ def subplots(
16651665
height_ratios: Sequence[float] | None = ...,
16661666
subplot_kw: dict[str, Any] | None = ...,
16671667
gridspec_kw: dict[str, Any] | None = ...,
1668-
**fig_kw
1668+
**fig_kw: Any
16691669
) -> tuple[Figure, Axes]:
16701670
...
16711671

@@ -1682,7 +1682,7 @@ def subplots(
16821682
height_ratios: Sequence[float] | None = ...,
16831683
subplot_kw: dict[str, Any] | None = ...,
16841684
gridspec_kw: dict[str, Any] | None = ...,
1685-
**fig_kw
1685+
**fig_kw: Any
16861686
) -> tuple[Figure, np.ndarray]: # TODO numpy/numpy#24738
16871687
...
16881688

@@ -1699,7 +1699,7 @@ def subplots(
16991699
height_ratios: Sequence[float] | None = ...,
17001700
subplot_kw: dict[str, Any] | None = ...,
17011701
gridspec_kw: dict[str, Any] | None = ...,
1702-
**fig_kw
1702+
**fig_kw: Any
17031703
) -> tuple[Figure, Any]:
17041704
...
17051705

@@ -1713,7 +1713,7 @@ def subplots(
17131713
height_ratios: Sequence[float] | None = None,
17141714
subplot_kw: dict[str, Any] | None = None,
17151715
gridspec_kw: dict[str, Any] | None = None,
1716-
**fig_kw
1716+
**fig_kw: Any
17171717
) -> tuple[Figure, Any]:
17181718
"""
17191719
Create a figure and a set of subplots.

0 commit comments

Comments
 (0)