We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffb3d83 commit b332390Copy full SHA for b332390
xarray/testing/strategies.py
@@ -61,15 +61,20 @@ def supported_dtypes() -> st.SearchStrategy[np.dtype]:
61
| npst.unsigned_integer_dtypes()
62
| npst.floating_dtypes()
63
| npst.complex_number_dtypes()
64
+ | npst.datetime64_dtypes()
65
+ | npst.timedelta64_dtypes()
66
+ | npst.unicode_string_dtypes()
67
)
68
69
-# TODO: add datetime64[ns]
70
def pandas_index_dtypes() -> st.SearchStrategy[np.dtype]:
71
return (
72
npst.integer_dtypes(endianness="<", sizes=(32, 64))
73
| npst.unsigned_integer_dtypes(endianness="<", sizes=(32, 64))
74
| npst.floating_dtypes(endianness="<", sizes=(32, 64))
75
+ | npst.datetime64_dtypes(endianness="<")
76
+ | npst.timedelta64_dtypes(endianness="<")
77
+ | npst.unicode_string_dtypes(endianness="<")
78
79
80
0 commit comments