@@ -1562,40 +1562,6 @@ def subplot(*args, **kwargs) -> Axes:
1562
1562
return ax
1563
1563
1564
1564
1565
- @overload
1566
- def subplots (
1567
- nrows : Literal [1 ] = ...,
1568
- ncols : Literal [1 ] = ...,
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 , Axes ]:
1579
- ...
1580
-
1581
-
1582
- @overload
1583
- def subplots (
1584
- nrows : int = ...,
1585
- ncols : int = ...,
1586
- * ,
1587
- sharex : bool | Literal ["none" , "all" , "row" , "col" ] = ...,
1588
- sharey : bool | Literal ["none" , "all" , "row" , "col" ] = ...,
1589
- squeeze : Literal [True ] = ...,
1590
- width_ratios : Sequence [float ] | None = ...,
1591
- height_ratios : Sequence [float ] | None = ...,
1592
- subplot_kw : dict [str , Any ] | None = ...,
1593
- gridspec_kw : dict [str , Any ] | None = ...,
1594
- ** fig_kw
1595
- ) -> tuple [Figure , np .ndarray ]: # TODO numpy/numpy#24738
1596
- ...
1597
-
1598
-
1599
1565
@overload
1600
1566
def subplots (
1601
1567
nrows : int = ...,
@@ -1613,23 +1579,6 @@ def subplots(
1613
1579
...
1614
1580
1615
1581
1616
- @overload
1617
- def subplots (
1618
- nrows : int = ...,
1619
- ncols : int = ...,
1620
- * ,
1621
- sharex : bool | Literal ["none" , "all" , "row" , "col" ] = ...,
1622
- sharey : bool | Literal ["none" , "all" , "row" , "col" ] = ...,
1623
- squeeze : bool = ...,
1624
- width_ratios : Sequence [float ] | None = ...,
1625
- height_ratios : Sequence [float ] | None = ...,
1626
- subplot_kw : dict [str , Any ] | None = ...,
1627
- gridspec_kw : dict [str , Any ] | None = ...,
1628
- ** fig_kw
1629
- ) -> tuple [Figure , Axes | np .ndarray ]:
1630
- ...
1631
-
1632
-
1633
1582
def subplots (
1634
1583
nrows : int = 1 , ncols : int = 1 , * ,
1635
1584
sharex : bool | Literal ["none" , "all" , "row" , "col" ] = False ,
0 commit comments