From 2b8a3643dd0174bd37991574ca870b68e6f5bd46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20W=C3=B6rtwein?= Date: Sun, 1 May 2022 00:14:44 -0400 Subject: [PATCH] TYP: fix type annotation in _has_externally_shared_axis --- pandas/plotting/_matplotlib/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/plotting/_matplotlib/tools.py b/pandas/plotting/_matplotlib/tools.py index 30af4f90d6869..bfbf77e85afd3 100644 --- a/pandas/plotting/_matplotlib/tools.py +++ b/pandas/plotting/_matplotlib/tools.py @@ -328,13 +328,13 @@ def _remove_labels_from_axis(axis: Axis): axis.get_label().set_visible(False) -def _has_externally_shared_axis(ax1: matplotlib.axes, compare_axis: str) -> bool: +def _has_externally_shared_axis(ax1: Axes, compare_axis: str) -> bool: """ Return whether an axis is externally shared. Parameters ---------- - ax1 : matplotlib.axes + ax1 : matplotlib.axes.Axes Axis to query. compare_axis : str `"x"` or `"y"` according to whether the X-axis or Y-axis is being