diff --git a/requirements.txt b/requirements.txt index c6f09308..9983482b 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 # https://github.com/roboflow/roboflow-python/issues/390 diff --git a/setup.py b/setup.py index 85f671ab..fddb44d7 100644 --- a/setup.py +++ b/setup.py @@ -32,6 +32,9 @@ "desktop": ["opencv-python==4.8.0.74"], "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",