From 87f33098c32890970ad62be36478e796af5e3475 Mon Sep 17 00:00:00 2001 From: David Hoese Date: Tue, 4 Aug 2026 15:44:54 -0500 Subject: [PATCH 1/4] Drop Python 3.11 support --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 61c2cd07..1d9b835d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ license-files = ["LICENSE.txt"] authors = [ { name = "Thomas Lavergne", email = "t.lavergne@met.no" }, ] -requires-python = ">=3.11" +requires-python = ">=3.12" dependencies = [ "pyproj>=3.0", "configobj", @@ -117,7 +117,7 @@ convention = "google" max-complexity = 10 [tool.mypy] -python_version = "3.11" +python_version = "3.12" # See https://github.com/python/mypy/issues/12286 for automatic multi-platform support platform = "linux" # platform = win32 From aad391bccab03982edd7bbc99df2ef602ca77920 Mon Sep 17 00:00:00 2001 From: David Hoese Date: Tue, 4 Aug 2026 15:47:04 -0500 Subject: [PATCH 2/4] Remove 3.11 from CI, add 3.14 --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3ff8dd94..7470bcd7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,10 +15,10 @@ jobs: fail-fast: true matrix: os: ["windows-latest", "ubuntu-latest", "macos-latest"] - python-version: ["3.11", "3.12", "3.13"] + python-version: ["3.12", "3.13", "3.14"] experimental: [false] include: - - python-version: "3.13" + - python-version: "3.14" os: "ubuntu-latest" experimental: true From 296358ca189358c21895cd2a01c4e6e7fd9db7a2 Mon Sep 17 00:00:00 2001 From: David Hoese Date: Tue, 4 Aug 2026 15:54:05 -0500 Subject: [PATCH 3/4] Fix mypy issues --- .pre-commit-config.yaml | 1 - pyresample/geometry.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b5318fb6..57c279a0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,6 @@ repos: - type_extensions - types-setuptools # Typed libraries - - numpy - pytest args: [ --warn-unused-configs ] - repo: https://github.com/pycqa/isort diff --git a/pyresample/geometry.py b/pyresample/geometry.py index be3f87e0..7b3f4b52 100644 --- a/pyresample/geometry.py +++ b/pyresample/geometry.py @@ -2135,8 +2135,8 @@ def update_hash(self, existing_hash: Optional[hashlib._Hash] = None) -> hashlib. if existing_hash is None: existing_hash = hashlib.sha1() # nosec: B324 existing_hash.update(self.crs_wkt.encode('utf-8')) - existing_hash.update(np.array(self.shape)) # type: ignore[arg-type] - existing_hash.update(np.array(self.area_extent)) # type: ignore[arg-type] + existing_hash.update(np.array(self.shape)) + existing_hash.update(np.array(self.area_extent)) return existing_hash @daskify_2in_2out From 3be81f4606744e01ad68bed15828b2dd97207076 Mon Sep 17 00:00:00 2001 From: David Hoese Date: Tue, 4 Aug 2026 16:01:09 -0500 Subject: [PATCH 4/4] Remove numpy plugin from mypy pyproject.toml --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1d9b835d..891ceecc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -122,7 +122,6 @@ python_version = "3.12" platform = "linux" # platform = win32 # platform = darwin -plugins = ["numpy.typing.mypy_plugin"] allow_untyped_decorators = false ignore_missing_imports = true no_implicit_optional = true