|
23 | 23 | from decimal import Decimal
|
24 | 24 | import operator
|
25 | 25 | import os
|
| 26 | +from typing import List |
26 | 27 |
|
27 | 28 | from dateutil.tz import tzlocal, tzutc
|
28 | 29 | import hypothesis
|
|
31 | 32 | import pytest
|
32 | 33 | from pytz import FixedOffset, utc
|
33 | 34 |
|
| 35 | +from pandas._typing import Dtype |
34 | 36 | import pandas.util._test_decorators as td
|
35 | 37 |
|
36 | 38 | import pandas as pd
|
@@ -798,14 +800,14 @@ def utc_fixture(request):
|
798 | 800 |
|
799 | 801 | UNSIGNED_INT_DTYPES = ["uint8", "uint16", "uint32", "uint64"]
|
800 | 802 | UNSIGNED_EA_INT_DTYPES = ["UInt8", "UInt16", "UInt32", "UInt64"]
|
801 |
| -SIGNED_INT_DTYPES = [int, "int8", "int16", "int32", "int64"] |
| 803 | +SIGNED_INT_DTYPES: List[Dtype] = [int, "int8", "int16", "int32", "int64"] |
802 | 804 | SIGNED_EA_INT_DTYPES = ["Int8", "Int16", "Int32", "Int64"]
|
803 | 805 | ALL_INT_DTYPES = UNSIGNED_INT_DTYPES + SIGNED_INT_DTYPES
|
804 | 806 | ALL_EA_INT_DTYPES = UNSIGNED_EA_INT_DTYPES + SIGNED_EA_INT_DTYPES
|
805 | 807 |
|
806 |
| -FLOAT_DTYPES = [float, "float32", "float64"] |
807 |
| -COMPLEX_DTYPES = [complex, "complex64", "complex128"] |
808 |
| -STRING_DTYPES = [str, "str", "U"] |
| 808 | +FLOAT_DTYPES: List[Dtype] = [float, "float32", "float64"] |
| 809 | +COMPLEX_DTYPES: List[Dtype] = [complex, "complex64", "complex128"] |
| 810 | +STRING_DTYPES: List[Dtype] = [str, "str", "U"] |
809 | 811 |
|
810 | 812 | DATETIME64_DTYPES = ["datetime64[ns]", "M8[ns]"]
|
811 | 813 | TIMEDELTA64_DTYPES = ["timedelta64[ns]", "m8[ns]"]
|
|
0 commit comments