From 9bd0368f508cf9e220c7fb78bca1ece151c713e0 Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Sun, 23 Jun 2024 20:06:57 -0700 Subject: [PATCH 1/3] Remove mypy exclusions for a couple more libraries Also (unrelated) allow mypy passing without `array_api_strict` installed, which isn't in our dev dependencies... --- pyproject.toml | 2 -- xarray/tests/test_dtypes.py | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index db64d7a18c5..1cad05cfa87 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -110,7 +110,6 @@ module = [ "cloudpickle.*", "cubed.*", "cupy.*", - "dask.types.*", "fsspec.*", "h5netcdf.*", "h5py.*", @@ -127,7 +126,6 @@ module = [ "pooch.*", "pyarrow.*", "pydap.*", - "pytest.*", "scipy.*", "seaborn.*", "setuptools", diff --git a/xarray/tests/test_dtypes.py b/xarray/tests/test_dtypes.py index e817bfdb330..200c74edf37 100644 --- a/xarray/tests/test_dtypes.py +++ b/xarray/tests/test_dtypes.py @@ -11,9 +11,9 @@ except ImportError: class DummyArrayAPINamespace: - bool = None - int32 = None - float64 = None + bool = None # type: ignore + int32 = None # type: ignore + float64 = None # type: ignore array_api_strict = DummyArrayAPINamespace From 7cb8f0a5e15b885e79e10e5209fb90351734a693 Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Sun, 23 Jun 2024 20:17:46 -0700 Subject: [PATCH 2/3] --- xarray/tests/test_dtypes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xarray/tests/test_dtypes.py b/xarray/tests/test_dtypes.py index 200c74edf37..e31ec0c62a1 100644 --- a/xarray/tests/test_dtypes.py +++ b/xarray/tests/test_dtypes.py @@ -11,9 +11,9 @@ except ImportError: class DummyArrayAPINamespace: - bool = None # type: ignore - int32 = None # type: ignore - float64 = None # type: ignore + bool = None # type: ignore[misc,var-annotated] + int32 = None # type: ignore[misc,var-annotated] + float64 = None # type: ignore[misc,var-annotated] array_api_strict = DummyArrayAPINamespace From 337e4031f107e522ffb8d636642eeededd7a6a59 Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Sun, 23 Jun 2024 20:22:20 -0700 Subject: [PATCH 3/3] --- xarray/tests/test_dtypes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xarray/tests/test_dtypes.py b/xarray/tests/test_dtypes.py index e31ec0c62a1..498ba2ce59f 100644 --- a/xarray/tests/test_dtypes.py +++ b/xarray/tests/test_dtypes.py @@ -11,9 +11,9 @@ except ImportError: class DummyArrayAPINamespace: - bool = None # type: ignore[misc,var-annotated] - int32 = None # type: ignore[misc,var-annotated] - float64 = None # type: ignore[misc,var-annotated] + bool = None # type: ignore[unused-ignore,var-annotated] + int32 = None # type: ignore[unused-ignore,var-annotated] + float64 = None # type: ignore[unused-ignore,var-annotated] array_api_strict = DummyArrayAPINamespace