Skip to content
forked from pydata/xarray

Commit b332390

Browse files
committed
Expand dtypes
1 parent ffb3d83 commit b332390

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

xarray/testing/strategies.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,20 @@ def supported_dtypes() -> st.SearchStrategy[np.dtype]:
6161
| npst.unsigned_integer_dtypes()
6262
| npst.floating_dtypes()
6363
| npst.complex_number_dtypes()
64+
| npst.datetime64_dtypes()
65+
| npst.timedelta64_dtypes()
66+
| npst.unicode_string_dtypes()
6467
)
6568

6669

67-
# TODO: add datetime64[ns]
6870
def pandas_index_dtypes() -> st.SearchStrategy[np.dtype]:
6971
return (
7072
npst.integer_dtypes(endianness="<", sizes=(32, 64))
7173
| npst.unsigned_integer_dtypes(endianness="<", sizes=(32, 64))
7274
| npst.floating_dtypes(endianness="<", sizes=(32, 64))
75+
| npst.datetime64_dtypes(endianness="<")
76+
| npst.timedelta64_dtypes(endianness="<")
77+
| npst.unicode_string_dtypes(endianness="<")
7378
)
7479

7580

0 commit comments

Comments
 (0)