Skip to content

Commit c81cc6b

Browse files
author
Laurent Mutricy
committed
solve mypy issue
1 parent f05d5fb commit c81cc6b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@
8484
Hashable,
8585
Iterator,
8686
)
87+
from typing import cast
88+
89+
from pandas._typing import Dtype
8790

8891
try:
8992
import pyarrow as pa
@@ -1448,7 +1451,7 @@ def complex_dtype(request):
14481451
return request.param
14491452

14501453

1451-
@pytest.fixture(params=tm.COMPLEX_DTYPES + tm.FLOAT_NUMPY_DTYPES)
1454+
@pytest.fixture(params=tm.COMPLEX_DTYPES + cast(list[Dtype], tm.FLOAT_NUMPY_DTYPES))
14521455
def complex_or_float_dtype(request):
14531456
"""
14541457
Parameterized fixture for complex and numpy float dtypes.

0 commit comments

Comments
 (0)