From 3a3d7dfa9dd7958b6831bb9b37b52584456398a4 Mon Sep 17 00:00:00 2001 From: Christoph Deil Date: Wed, 26 Aug 2026 13:42:09 +0200 Subject: [PATCH 1/2] fix: keep NumPy type-check cap out of runtime metadata --- requirements.txt | 5 +---- setup.py | 3 +++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 4ede3609..2a105758 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,10 +3,7 @@ idna>=3.7 cycler kiwisolver>=1.3.1 matplotlib -# numpy 2.4 ships PEP 695 `type` statements in its stubs, which mypy rejects -# under python_version=3.10 (see [tool.mypy] in pyproject.toml). Cap below 2.4, -# matching rf-detr's typing constraint. -numpy>=1.18.5,<2.4 +numpy>=1.18.5 opencv-python-headless>=4.10.0 # relax exact pin to avoid downstream conflicts (#349) Pillow>=7.1.2 pillow-avif-plugin<2 diff --git a/setup.py b/setup.py index 7d75aed7..c901f676 100644 --- a/setup.py +++ b/setup.py @@ -35,6 +35,9 @@ "heic": ["pillow-heif>=1.7.0"], "dev": [ "mypy", + # Keep NumPy's PEP 695 stubs out of the Python 3.10 mypy target + # without constraining SDK users at runtime. + "numpy<2.4", "responses", "ruff", "types-pyyaml", From d642b540469d71ba4b2e5234695d76e1ba2600e8 Mon Sep 17 00:00:00 2001 From: Christoph Deil Date: Wed, 7 Oct 2026 11:59:53 +0200 Subject: [PATCH 2/2] Drop the dev-only NumPy cap The mypy override for numpy in pyproject.toml and current mypy releases type-check the package with NumPy 2.5 under python_version 3.10, so the dev extra no longer needs a NumPy upper bound. Co-Authored-By: Claude Opus 5.5 --- setup.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/setup.py b/setup.py index c901f676..7d75aed7 100644 --- a/setup.py +++ b/setup.py @@ -35,9 +35,6 @@ "heic": ["pillow-heif>=1.7.0"], "dev": [ "mypy", - # Keep NumPy's PEP 695 stubs out of the Python 3.10 mypy target - # without constraining SDK users at runtime. - "numpy<2.4", "responses", "ruff", "types-pyyaml",