@@ -128,7 +128,7 @@ def __init__(
128
128
include_bool = False ,
129
129
column : IndexLabel | None = None ,
130
130
** kwds ,
131
- ):
131
+ ) -> None :
132
132
133
133
import matplotlib .pyplot as plt
134
134
@@ -984,7 +984,7 @@ class PlanePlot(MPLPlot):
984
984
985
985
_layout_type = "single"
986
986
987
- def __init__ (self , data , x , y , ** kwargs ):
987
+ def __init__ (self , data , x , y , ** kwargs ) -> None :
988
988
MPLPlot .__init__ (self , data , ** kwargs )
989
989
if x is None or y is None :
990
990
raise ValueError (self ._kind + " requires an x and y column" )
@@ -1037,7 +1037,7 @@ def _plot_colorbar(self, ax: Axes, **kwds):
1037
1037
class ScatterPlot (PlanePlot ):
1038
1038
_kind = "scatter"
1039
1039
1040
- def __init__ (self , data , x , y , s = None , c = None , ** kwargs ):
1040
+ def __init__ (self , data , x , y , s = None , c = None , ** kwargs ) -> None :
1041
1041
if s is None :
1042
1042
# hide the matplotlib default for size, in case we want to change
1043
1043
# the handling of this argument later
@@ -1125,7 +1125,7 @@ def _make_plot(self):
1125
1125
class HexBinPlot (PlanePlot ):
1126
1126
_kind = "hexbin"
1127
1127
1128
- def __init__ (self , data , x , y , C = None , ** kwargs ):
1128
+ def __init__ (self , data , x , y , C = None , ** kwargs ) -> None :
1129
1129
super ().__init__ (data , x , y , ** kwargs )
1130
1130
if is_integer (C ) and not self .data .columns .holds_integer ():
1131
1131
C = self .data .columns [C ]
@@ -1157,7 +1157,7 @@ class LinePlot(MPLPlot):
1157
1157
_default_rot = 0
1158
1158
orientation = "vertical"
1159
1159
1160
- def __init__ (self , data , ** kwargs ):
1160
+ def __init__ (self , data , ** kwargs ) -> None :
1161
1161
from pandas .plotting import plot_params
1162
1162
1163
1163
MPLPlot .__init__ (self , data , ** kwargs )
@@ -1349,7 +1349,7 @@ def get_label(i):
1349
1349
class AreaPlot (LinePlot ):
1350
1350
_kind = "area"
1351
1351
1352
- def __init__ (self , data , ** kwargs ):
1352
+ def __init__ (self , data , ** kwargs ) -> None :
1353
1353
kwargs .setdefault ("stacked" , True )
1354
1354
data = data .fillna (value = 0 )
1355
1355
LinePlot .__init__ (self , data , ** kwargs )
@@ -1424,7 +1424,7 @@ class BarPlot(MPLPlot):
1424
1424
_default_rot = 90
1425
1425
orientation = "vertical"
1426
1426
1427
- def __init__ (self , data , ** kwargs ):
1427
+ def __init__ (self , data , ** kwargs ) -> None :
1428
1428
# we have to treat a series differently than a
1429
1429
# 1-column DataFrame w.r.t. color handling
1430
1430
self ._is_series = isinstance (data , ABCSeries )
@@ -1606,7 +1606,7 @@ class PiePlot(MPLPlot):
1606
1606
_kind = "pie"
1607
1607
_layout_type = "horizontal"
1608
1608
1609
- def __init__ (self , data , kind = None , ** kwargs ):
1609
+ def __init__ (self , data , kind = None , ** kwargs ) -> None :
1610
1610
data = data .fillna (value = 0 )
1611
1611
if (data < 0 ).any ().any ():
1612
1612
raise ValueError (f"{ self ._kind } plot doesn't allow negative values" )
0 commit comments