From xarray v2023.10.0 onwards, the reset_encoding method was renamed to drop_encoding.
So all previous versions will raise AttributeError: 'Dataset' object has no attribute 'drop_encoding'.
Added xarray version in pyproject.toml dependencies to resolve this.
The Union operator | was introduced in python 3.10.
Replaced | with typing.Union to add support for python 3.9 as well.
From
xarray
v2023.10.0 onwards, thereset_encoding
method was renamed todrop_encoding
.So all previous versions will raise
AttributeError: 'Dataset' object has no attribute 'drop_encoding'
.Added xarray version in
pyproject.toml
dependencies to resolve this.The Union operator
|
was introduced in python 3.10.Replaced
|
withtyping.Union
to add support for python 3.9 as well.