Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,4 @@ doc/videos-gallery.txt
# gitignore to make it _easier_ to work with `uv`, not as an indication that I
# think we shouldn't...)
uv.lock
mypy_report/
12 changes: 9 additions & 3 deletions xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,17 @@ def _check_compression_codec_available(codec: str | None) -> bool:

# Attempt to create a variable with the compression
if codec and codec.startswith("blosc"):
nc.createVariable(
"test", "f4", ("x",), compression=codec, blosc_shuffle=1
nc.createVariable( # type: ignore[call-overload]
varname="test",
datatype="f4",
dimensions=("x",),
compression=codec,
blosc_shuffle=1,
)
else:
nc.createVariable("test", "f4", ("x",), compression=codec)
nc.createVariable( # type: ignore[call-overload]
varname="test", datatype="f4", dimensions=("x",), compression=codec
)

nc.close()
os.unlink(tmp_path)
Expand Down
Loading