@@ -477,7 +477,7 @@ def _has_plotted_object(ax: Axes) -> bool:
477
477
return len (ax .lines ) != 0 or len (ax .artists ) != 0 or len (ax .containers ) != 0
478
478
479
479
@final
480
- def _maybe_right_yaxis (self , ax : Axes , axes_num : int ):
480
+ def _maybe_right_yaxis (self , ax : Axes , axes_num : int ) -> Axes :
481
481
if not self .on_right (axes_num ):
482
482
# secondary axes may be passed via ax kw
483
483
return self ._get_ax_layer (ax )
@@ -666,7 +666,7 @@ def _add_table(self) -> None:
666
666
tools .table (ax , data )
667
667
668
668
@final
669
- def _post_plot_logic_common (self , ax , data ):
669
+ def _post_plot_logic_common (self , ax : Axes , data ) -> None :
670
670
"""Common post process for each axes"""
671
671
if self .orientation == "vertical" or self .orientation is None :
672
672
self ._apply_axis_properties (ax .xaxis , rot = self .rot , fontsize = self .fontsize )
@@ -685,7 +685,7 @@ def _post_plot_logic_common(self, ax, data):
685
685
raise ValueError
686
686
687
687
@abstractmethod
688
- def _post_plot_logic (self , ax , data ) -> None :
688
+ def _post_plot_logic (self , ax : Axes , data ) -> None :
689
689
"""Post process for each axes. Overridden in child classes"""
690
690
691
691
@final
@@ -1039,7 +1039,7 @@ def _get_colors(
1039
1039
)
1040
1040
1041
1041
@final
1042
- def _parse_errorbars (self , label , err ):
1042
+ def _parse_errorbars (self , label : str , err ):
1043
1043
"""
1044
1044
Look for error keyword arguments and return the actual errorbar data
1045
1045
or return the error DataFrame/dict
@@ -1835,7 +1835,14 @@ def _post_plot_logic(self, ax: Axes, data) -> None:
1835
1835
1836
1836
self ._decorate_ticks (ax , self ._get_index_name (), str_index , s_edge , e_edge )
1837
1837
1838
- def _decorate_ticks (self , ax : Axes , name , ticklabels , start_edge , end_edge ) -> None :
1838
+ def _decorate_ticks (
1839
+ self ,
1840
+ ax : Axes ,
1841
+ name : str | None ,
1842
+ ticklabels : list [str ],
1843
+ start_edge : float ,
1844
+ end_edge : float ,
1845
+ ) -> None :
1839
1846
ax .set_xlim ((start_edge , end_edge ))
1840
1847
1841
1848
if self .xticks is not None :
@@ -1880,7 +1887,14 @@ def _plot( # type: ignore[override]
1880
1887
def _get_custom_index_name (self ):
1881
1888
return self .ylabel
1882
1889
1883
- def _decorate_ticks (self , ax : Axes , name , ticklabels , start_edge , end_edge ) -> None :
1890
+ def _decorate_ticks (
1891
+ self ,
1892
+ ax : Axes ,
1893
+ name : str | None ,
1894
+ ticklabels : list [str ],
1895
+ start_edge : float ,
1896
+ end_edge : float ,
1897
+ ) -> None :
1884
1898
# horizontal bars
1885
1899
ax .set_ylim ((start_edge , end_edge ))
1886
1900
ax .set_yticks (self .tick_pos )
0 commit comments