From ecdcb78ca05eb3b0a8eb7fc598160b311ccf373f Mon Sep 17 00:00:00 2001 From: Simon Hawkins Date: Sat, 9 Jan 2021 19:59:37 +0000 Subject: [PATCH] TYP: ALL_NUMPY_DTYPES mypy errors with numpy-1.20 --- pandas/_testing/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index c51ceb750c338..415dfd80d38e6 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -108,9 +108,9 @@ DATETIME64_DTYPES: List[Dtype] = ["datetime64[ns]", "M8[ns]"] TIMEDELTA64_DTYPES: List[Dtype] = ["timedelta64[ns]", "m8[ns]"] -BOOL_DTYPES = [bool, "bool"] -BYTES_DTYPES = [bytes, "bytes"] -OBJECT_DTYPES = [object, "object"] +BOOL_DTYPES: List[Dtype] = [bool, "bool"] +BYTES_DTYPES: List[Dtype] = [bytes, "bytes"] +OBJECT_DTYPES: List[Dtype] = [object, "object"] ALL_REAL_DTYPES = FLOAT_DTYPES + ALL_INT_DTYPES ALL_NUMPY_DTYPES = (