diff --git a/.gitignore b/.gitignore index 4df55889991..938a4c97d86 100644 --- a/.gitignore +++ b/.gitignore @@ -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/ diff --git a/xarray/tests/test_backends.py b/xarray/tests/test_backends.py index c4292efaf6e..2e234c5b31e 100644 --- a/xarray/tests/test_backends.py +++ b/xarray/tests/test_backends.py @@ -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)