Skip to content

Commit c7a128e

Browse files
committed
Code needs two overloads
1 parent 64cac36 commit c7a128e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

lib/matplotlib/pyplot.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,6 +1562,23 @@ def subplot(*args, **kwargs) -> Axes:
15621562
return ax
15631563

15641564

1565+
@overload
1566+
def subplots(
1567+
nrows: int = ...,
1568+
ncols: int = ...,
1569+
*,
1570+
sharex: bool | Literal["none", "all", "row", "col"] = ...,
1571+
sharey: bool | Literal["none", "all", "row", "col"] = ...,
1572+
squeeze: Literal[True],
1573+
width_ratios: Sequence[float] | None = ...,
1574+
height_ratios: Sequence[float] | None = ...,
1575+
subplot_kw: dict[str, Any] | None = ...,
1576+
gridspec_kw: dict[str, Any] | None = ...,
1577+
**fig_kw
1578+
) -> tuple[Figure, Any]:
1579+
...
1580+
1581+
15651582
@overload
15661583
def subplots(
15671584
nrows: int = ...,

0 commit comments

Comments
 (0)