🍾 Xarray is now 10 years old! 🎉

xarray.testing.strategies.supported_dtypes

xarray.testing.strategies.supported_dtypes#

xarray.testing.strategies.supported_dtypes()[source]#

Generates only those numpy dtypes which xarray can handle.

Use instead of hypothesis.extra.numpy.scalar_dtypes in order to exclude weirder dtypes such as unicode, byte_string, array, or nested dtypes. Also excludes datetimes, which dodges bugs with pandas non-nanosecond datetime overflows. Checks only native endianness.

Requires the hypothesis package to be installed.