@@ -1248,8 +1248,9 @@ def _make_plot(self):
1248
1248
left , right = get_xlim (lines )
1249
1249
ax .set_xlim (left , right )
1250
1250
1251
+ # error: Signature of "_plot" incompatible with supertype "MPLPlot"
1251
1252
@classmethod
1252
- def _plot (
1253
+ def _plot ( # type: ignore[override]
1253
1254
cls , ax : Axes , x , y , style = None , column_num = None , stacking_id = None , ** kwds
1254
1255
):
1255
1256
# column_num is used to get the target column from plotf in line and
@@ -1383,16 +1384,17 @@ def __init__(self, data, **kwargs):
1383
1384
if self .logy or self .loglog :
1384
1385
raise ValueError ("Log-y scales are not supported in area plot" )
1385
1386
1387
+ # error: Signature of "_plot" incompatible with supertype "MPLPlot"
1386
1388
@classmethod
1387
- def _plot (
1389
+ def _plot ( # type: ignore[override]
1388
1390
cls ,
1389
1391
ax : Axes ,
1390
1392
x ,
1391
1393
y ,
1392
1394
style = None ,
1393
1395
column_num = None ,
1394
1396
stacking_id = None ,
1395
- is_errorbar = False ,
1397
+ is_errorbar : bool = False ,
1396
1398
** kwds ,
1397
1399
):
1398
1400
@@ -1483,8 +1485,11 @@ def _args_adjust(self):
1483
1485
if is_list_like (self .left ):
1484
1486
self .left = np .array (self .left )
1485
1487
1488
+ # error: Signature of "_plot" incompatible with supertype "MPLPlot"
1486
1489
@classmethod
1487
- def _plot (cls , ax : Axes , x , y , w , start = 0 , log = False , ** kwds ):
1490
+ def _plot ( # type: ignore[override]
1491
+ cls , ax : Axes , x , y , w , start = 0 , log = False , ** kwds
1492
+ ):
1488
1493
return ax .bar (x , y , w , bottom = start , log = log , ** kwds )
1489
1494
1490
1495
@property
@@ -1601,8 +1606,11 @@ class BarhPlot(BarPlot):
1601
1606
def _start_base (self ):
1602
1607
return self .left
1603
1608
1609
+ # error: Signature of "_plot" incompatible with supertype "MPLPlot"
1604
1610
@classmethod
1605
- def _plot (cls , ax : Axes , x , y , w , start = 0 , log = False , ** kwds ):
1611
+ def _plot ( # type: ignore[override]
1612
+ cls , ax : Axes , x , y , w , start = 0 , log = False , ** kwds
1613
+ ):
1606
1614
return ax .barh (x , y , w , left = start , log = log , ** kwds )
1607
1615
1608
1616
def _decorate_ticks (self , ax : Axes , name , ticklabels , start_edge , end_edge ):
0 commit comments