Pin various stubs to numpy to < 2 (#12152)

Fixes #12146
This commit is contained in:
Sebastian Rittau
2024-06-17 15:50:22 +02:00
committed by GitHub
parent 1af9de664f
commit 212af7a526
4 changed files with 9 additions and 4 deletions

View File

@@ -3,7 +3,8 @@
version = "2.16.*"
upstream_repository = "https://github.com/tensorflow/tensorflow"
# requires a version of numpy with a `py.typed` file
requires = ["numpy>=1.20", "types-protobuf", "types-requests"]
# TODO: stubtest errors when using numpy 2
requires = ["numpy>=1.20,<2", "types-protobuf", "types-requests"]
extra_description = "Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 25.1 on tensorflow==2.16.1 ."
partial_stub = true