@@ -128,7 +128,7 @@ def __init__(
128128 include_bool = False ,
129129 column : IndexLabel | None = None ,
130130 ** kwds ,
131- ):
131+ ) -> None :
132132
133133 import matplotlib .pyplot as plt
134134
@@ -984,7 +984,7 @@ class PlanePlot(MPLPlot):
984984
985985 _layout_type = "single"
986986
987- def __init__ (self , data , x , y , ** kwargs ):
987+ def __init__ (self , data , x , y , ** kwargs ) -> None :
988988 MPLPlot .__init__ (self , data , ** kwargs )
989989 if x is None or y is None :
990990 raise ValueError (self ._kind + " requires an x and y column" )
@@ -1037,7 +1037,7 @@ def _plot_colorbar(self, ax: Axes, **kwds):
10371037class ScatterPlot (PlanePlot ):
10381038 _kind = "scatter"
10391039
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 :
10411041 if s is None :
10421042 # hide the matplotlib default for size, in case we want to change
10431043 # the handling of this argument later
@@ -1125,7 +1125,7 @@ def _make_plot(self):
11251125class HexBinPlot (PlanePlot ):
11261126 _kind = "hexbin"
11271127
1128- def __init__ (self , data , x , y , C = None , ** kwargs ):
1128+ def __init__ (self , data , x , y , C = None , ** kwargs ) -> None :
11291129 super ().__init__ (data , x , y , ** kwargs )
11301130 if is_integer (C ) and not self .data .columns .holds_integer ():
11311131 C = self .data .columns [C ]
@@ -1157,7 +1157,7 @@ class LinePlot(MPLPlot):
11571157 _default_rot = 0
11581158 orientation = "vertical"
11591159
1160- def __init__ (self , data , ** kwargs ):
1160+ def __init__ (self , data , ** kwargs ) -> None :
11611161 from pandas .plotting import plot_params
11621162
11631163 MPLPlot .__init__ (self , data , ** kwargs )
@@ -1349,7 +1349,7 @@ def get_label(i):
13491349class AreaPlot (LinePlot ):
13501350 _kind = "area"
13511351
1352- def __init__ (self , data , ** kwargs ):
1352+ def __init__ (self , data , ** kwargs ) -> None :
13531353 kwargs .setdefault ("stacked" , True )
13541354 data = data .fillna (value = 0 )
13551355 LinePlot .__init__ (self , data , ** kwargs )
@@ -1424,7 +1424,7 @@ class BarPlot(MPLPlot):
14241424 _default_rot = 90
14251425 orientation = "vertical"
14261426
1427- def __init__ (self , data , ** kwargs ):
1427+ def __init__ (self , data , ** kwargs ) -> None :
14281428 # we have to treat a series differently than a
14291429 # 1-column DataFrame w.r.t. color handling
14301430 self ._is_series = isinstance (data , ABCSeries )
@@ -1606,7 +1606,7 @@ class PiePlot(MPLPlot):
16061606 _kind = "pie"
16071607 _layout_type = "horizontal"
16081608
1609- def __init__ (self , data , kind = None , ** kwargs ):
1609+ def __init__ (self , data , kind = None , ** kwargs ) -> None :
16101610 data = data .fillna (value = 0 )
16111611 if (data < 0 ).any ().any ():
16121612 raise ValueError (f"{ self ._kind } plot doesn't allow negative values" )
0 commit comments