diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 6088837550ecd..337c1910102a7 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -2208,7 +2208,7 @@ def _sort_mixed(values): return np.concatenate([nums, np.asarray(strs, dtype=object)]) -def _sort_tuples(values: np.ndarray[tuple]): +def _sort_tuples(values: np.ndarray): """ Convert array of tuples (1d) to array or array (2d). We need to keep the columns separately as they contain different types and