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 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/pyproject.toml b/pyproject.toml index 61c2cd07..891ceecc 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,12 +117,11 @@ 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 # platform = darwin -plugins = ["numpy.typing.mypy_plugin"] allow_untyped_decorators = false ignore_missing_imports = true no_implicit_optional = true 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