# xarray.testing.strategies.attrs

### xarray.testing.strategies.attrs()[[source]](https://github.com/pydata/xarray/blob/main/xarray/testing/strategies.py#L232-L248)

Generates arbitrary valid attributes dictionaries for xarray objects.

The generated dictionaries can potentially be recursive.

Requires the hypothesis package to be installed.

#### SEE ALSO
[Hypothesis testing](../user-guide/testing.html.md#testing-hypothesis)
