Skip to content

Commit a870a4e

Browse files
authored
Remove numpy pins from several stubs (#12993)
1 parent ea368c7 commit a870a4e

File tree

6 files changed

+6
-16
lines changed

6 files changed

+6
-16
lines changed

stubs/JACK-Client/METADATA.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
version = "0.5.*"
22
upstream_repository = "https://github.com/spatialaudio/jackclient-python"
33
# Requires a version of numpy with a `py.typed` file
4-
# see https://github.com/python/typeshed/issues/12551
5-
# on why we need the upper bound for numpy
6-
requires = ["numpy>=1.20,<2.1.0", "types-cffi"]
4+
requires = ["numpy>=1.20", "types-cffi"]
75

86
[tool.stubtest]
97
# darwin and win32 are equivalent

stubs/networkx/METADATA.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
version = "3.3"
22
upstream_repository = "https://github.com/networkx/networkx"
33
# requires a version of numpy with a `py.typed` file
4-
# see https://github.com/python/typeshed/issues/12551
5-
# on why we need the upper bound
6-
requires = ["numpy>=1.20,<2.1.0"]
4+
requires = ["numpy>=1.20"]
75
partial_stub = true
86

97
[tool.stubtest]

stubs/networkx/networkx/classes/graph.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ _Data: TypeAlias = (
2222
| dict[_Node, dict[_Node, dict[str, Any]]]
2323
| dict[_Node, Iterable[_Node]]
2424
| Iterable[_EdgePlus[_Node]]
25-
| numpy.ndarray[_Node, Any]
25+
| numpy.ndarray[Any, Any]
2626
# | scipy.sparse.base.spmatrix
2727
)
2828

stubs/seaborn/METADATA.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
version = "0.13.2"
22
# Requires a version of numpy and matplotlib with a `py.typed` file
3-
# see https://github.com/python/typeshed/issues/12551
4-
# on why we need the upper bound for numpy
53
#
64
# TODO: Specifying the python-version for matplotlib should not be necessary,
75
# because of the requires_python field. However, this needs changes to
86
# get_typeshed_stub_version.py (see there).
97
requires = [
108
"matplotlib>=3.8; python_version>='3.9'",
11-
"numpy>=1.20,<2.1.0",
9+
"numpy>=1.20",
1210
"pandas-stubs",
1311
]
1412
# matplotlib>=3.8 requires Python >=3.9

stubs/shapely/METADATA.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
version = "2.0.*"
22
# Requires a version of numpy with a `py.typed` file
3-
# see https://github.com/python/typeshed/issues/12551
4-
# on why we need the upper bound for numpy
5-
requires = ["numpy>=1.20,<2.1.0"]
3+
requires = ["numpy>=1.20"]
64
upstream_repository = "https://github.com/shapely/shapely"

stubs/tensorflow/METADATA.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
version = "~=2.18.0"
33
upstream_repository = "https://github.com/tensorflow/tensorflow"
44
# requires a version of numpy with a `py.typed` file
5-
# see https://github.com/python/typeshed/issues/12551
6-
# on why we need the upper bound for numpy
7-
requires = ["numpy>=1.20,<2.1.0", "types-protobuf", "types-requests"]
5+
requires = ["numpy>=1.20", "types-protobuf", "types-requests"]
86
extra_description = "Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 27.2 on `tensorflow==2.18.0`."
97
partial_stub = true
108

0 commit comments

Comments
 (0)