From df8bd358b7fe037ddb049c3be0ed448db3bc53eb Mon Sep 17 00:00:00 2001 From: Simon Hawkins Date: Sat, 13 Feb 2021 12:48:16 +0000 Subject: [PATCH] TYP: np.ndarray does not yet accept type parameters --- pandas/core/algorithms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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