Remove numpy pins from several stubs (#12993)

This commit is contained in:
Ali Hamdan
2024-11-11 17:47:11 +01:00
committed by GitHub
parent ea368c7269
commit a870a4e63a
6 changed files with 6 additions and 16 deletions

View File

@@ -1,9 +1,7 @@
version = "3.3"
upstream_repository = "https://github.com/networkx/networkx"
# requires a version of numpy with a `py.typed` file
# see https://github.com/python/typeshed/issues/12551
# on why we need the upper bound
requires = ["numpy>=1.20,<2.1.0"]
requires = ["numpy>=1.20"]
partial_stub = true
[tool.stubtest]

View File

@@ -22,7 +22,7 @@ _Data: TypeAlias = (
| dict[_Node, dict[_Node, dict[str, Any]]]
| dict[_Node, Iterable[_Node]]
| Iterable[_EdgePlus[_Node]]
| numpy.ndarray[_Node, Any]
| numpy.ndarray[Any, Any]
# | scipy.sparse.base.spmatrix
)