From c8ff731aa83b5b555b1c75bf72120e9f1ca043d9 Mon Sep 17 00:00:00 2001 From: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> Date: Sun, 23 Jun 2024 20:41:41 -0700 Subject: [PATCH] Remove mypy exclusions for a couple more libraries (#9160) * 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 2081f7f87bc..1815fa6dd5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -110,7 +110,6 @@ module = [ "cloudpickle.*", "cubed.*", "cupy.*", - "dask.types.*", "fsspec.*", "h5netcdf.*", "h5py.*", @@ -126,7 +125,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..498ba2ce59f 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[unused-ignore,var-annotated] + int32 = None # type: ignore[unused-ignore,var-annotated] + float64 = None # type: ignore[unused-ignore,var-annotated] array_api_strict = DummyArrayAPINamespace