Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[networkx] Stubs don't work with numpy 2 #12153

Closed
srittau opened this issue Jun 17, 2024 · 0 comments · Fixed by #12477
Closed

[networkx] Stubs don't work with numpy 2 #12153

srittau opened this issue Jun 17, 2024 · 0 comments · Fixed by #12477
Labels
help wanted An actionable problem of low to medium complexity where a PR would be very welcome stubs: improvement Improve/refactor existing annotations, other stubs issues

Comments

@srittau
Copy link
Collaborator

srittau commented Jun 17, 2024

Stubtest fails:


Commands run:

/tmp/tmpnj02fgq8/bin/pip install networkx[]==3.2.1 mypy==1.10.0 numpy
MYPYPATH=/home/runner/work/typeshed/typeshed/stubs/networkx /tmp/tmpnj02fgq8/bin/python -m mypy.stubtest --custom-typeshed-dir /home/runner/work/typeshed/typeshed --ignore-missing-stub networkx --allowlist stubs/networkx/@tests/stubtest_allowlist.txt

**********************************************************************

Command output:

error: networkx.DiGraph.adj variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:40
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdedfd0>

error: networkx.DiGraph.degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:74
networkx.classes.reportviews.DiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdee2d0>

error: networkx.DiGraph.edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:70
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdee150>

error: networkx.DiGraph.in_degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:23
Union[networkx.classes.reportviews.InDegreeView[_Node`1], networkx.classes.reportviews.InMultiDegreeView[_Node`1]]
Runtime:
<functools.cached_property object at 0x7fe1cfdee350>

error: networkx.DiGraph.in_edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:22
networkx.classes.reportviews.InEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdee250>

error: networkx.DiGraph.out_degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:25
Union[networkx.classes.reportviews.OutDegreeView[_Node`1], networkx.classes.reportviews.OutMultiDegreeView[_Node`1]]
Runtime:
<functools.cached_property object at 0x7fe1cfdee3d0>

error: networkx.DiGraph.out_edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:24
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdee1d0>

error: networkx.DiGraph.pred variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:17
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdee0d0>

error: networkx.DiGraph.succ variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:16
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdee050>

error: networkx.Graph.adj variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:40
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdec1d0>

error: networkx.Graph.degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:74
networkx.classes.reportviews.DiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdecfd0>

error: networkx.Graph.edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:70
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdecf50>

error: networkx.Graph.nodes variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:51
networkx.classes.reportviews.NodeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdeced0>

error: networkx.MultiDiGraph.adj variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:40
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdef4d0>

error: networkx.MultiDiGraph.degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:7
networkx.classes.reportviews.MultiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef810>

error: networkx.MultiDiGraph.edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:70
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef690>

error: networkx.MultiDiGraph.in_degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:8
networkx.classes.reportviews.InMultiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef890>

error: networkx.MultiDiGraph.in_edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:22
networkx.classes.reportviews.InEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef790>

error: networkx.MultiDiGraph.out_degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:9
networkx.classes.reportviews.OutMultiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef910>

error: networkx.MultiDiGraph.out_edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:24
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef710>

error: networkx.MultiDiGraph.pred variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:17
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdef5d0>

error: networkx.MultiDiGraph.succ variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:16
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdef550>

error: networkx.MultiGraph.adj variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:40
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdee510>

error: networkx.MultiGraph.degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:74
networkx.classes.reportviews.DiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdeee50>

error: networkx.MultiGraph.edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/__init__.pyi:70
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdeedd0>

error: networkx.classes.DiGraph.adj variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:40
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdedfd0>

error: networkx.classes.DiGraph.degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:74
networkx.classes.reportviews.DiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdee2d0>

error: networkx.classes.DiGraph.edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:70
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdee150>

error: networkx.classes.DiGraph.in_degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:23
Union[networkx.classes.reportviews.InDegreeView[_Node`1], networkx.classes.reportviews.InMultiDegreeView[_Node`1]]
Runtime:
<functools.cached_property object at 0x7fe1cfdee[350](https://github.com/python/typeshed/actions/runs/9539901601/job/26312227412#step:5:351)>

error: networkx.classes.DiGraph.in_edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:22
networkx.classes.reportviews.InEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdee250>

error: networkx.classes.DiGraph.out_degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:25
Union[networkx.classes.reportviews.OutDegreeView[_Node`1], networkx.classes.reportviews.OutMultiDegreeView[_Node`1]]
Runtime:
<functools.cached_property object at 0x7fe1cfdee3d0>

error: networkx.classes.DiGraph.out_edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:24
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdee1d0>

error: networkx.classes.DiGraph.pred variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:17
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdee0d0>

error: networkx.classes.DiGraph.succ variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:16
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdee050>

error: networkx.classes.Graph.adj variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:40
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdec1d0>

error: networkx.classes.Graph.degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:74
networkx.classes.reportviews.DiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdecfd0>

error: networkx.classes.Graph.edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:70
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdecf50>

error: networkx.classes.Graph.nodes variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:51
networkx.classes.reportviews.NodeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdeced0>

error: networkx.classes.MultiDiGraph.adj variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:40
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdef4d0>

error: networkx.classes.MultiDiGraph.degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:7
networkx.classes.reportviews.MultiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef810>

error: networkx.classes.MultiDiGraph.edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:70
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef690>

error: networkx.classes.MultiDiGraph.in_degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:8
networkx.classes.reportviews.InMultiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef890>

error: networkx.classes.MultiDiGraph.in_edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:22
networkx.classes.reportviews.InEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef790>

error: networkx.classes.MultiDiGraph.out_degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:9
networkx.classes.reportviews.OutMultiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef910>

error: networkx.classes.MultiDiGraph.out_edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:24
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef710>

error: networkx.classes.MultiDiGraph.pred variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:17
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdef5d0>

error: networkx.classes.MultiDiGraph.succ variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:16
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdef550>

error: networkx.classes.MultiGraph.adj variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:40
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdee510>

error: networkx.classes.MultiGraph.degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:74
networkx.classes.reportviews.DiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdeee50>

error: networkx.classes.MultiGraph.edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/__init__.pyi:70
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdeedd0>

error: networkx.classes.digraph.DiGraph.adj variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/digraph.pyi:40
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdedfd0>

error: networkx.classes.digraph.DiGraph.degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/digraph.pyi:74
networkx.classes.reportviews.DiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdee2d0>

error: networkx.classes.digraph.DiGraph.edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/digraph.pyi:70
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdee150>

error: networkx.classes.digraph.DiGraph.in_degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/digraph.pyi:23
Union[networkx.classes.reportviews.InDegreeView[_Node`1], networkx.classes.reportviews.InMultiDegreeView[_Node`1]]
Runtime:
<functools.cached_property object at 0x7fe1cfdee350>

error: networkx.classes.digraph.DiGraph.in_edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/digraph.pyi:22
networkx.classes.reportviews.InEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdee250>

error: networkx.classes.digraph.DiGraph.out_degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/digraph.pyi:25
Union[networkx.classes.reportviews.OutDegreeView[_Node`1], networkx.classes.reportviews.OutMultiDegreeView[_Node`1]]
Runtime:
<functools.cached_property object at 0x7fe1cfdee3d0>

error: networkx.classes.digraph.DiGraph.out_edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/digraph.pyi:24
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdee1d0>

error: networkx.classes.digraph.DiGraph.pred variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/digraph.pyi:17
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdee0d0>

error: networkx.classes.digraph.DiGraph.succ variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/digraph.pyi:16
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdee050>

error: networkx.classes.graph.Graph.adj variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/graph.pyi:40
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdec1d0>

error: networkx.classes.graph.Graph.degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/graph.pyi:74
networkx.classes.reportviews.DiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdecfd0>

error: networkx.classes.graph.Graph.edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/graph.pyi:70
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdecf50>

error: networkx.classes.graph.Graph.nodes variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/graph.pyi:51
networkx.classes.reportviews.NodeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdeced0>

error: networkx.classes.multidigraph.MultiDiGraph.adj variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/multidigraph.pyi:40
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdef4d0>

error: networkx.classes.multidigraph.MultiDiGraph.degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/multidigraph.pyi:7
networkx.classes.reportviews.MultiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef810>

error: networkx.classes.multidigraph.MultiDiGraph.edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/multidigraph.pyi:70
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef690>

error: networkx.classes.multidigraph.MultiDiGraph.in_degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/multidigraph.pyi:8
networkx.classes.reportviews.InMultiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef890>

error: networkx.classes.multidigraph.MultiDiGraph.in_edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/multidigraph.pyi:22
networkx.classes.reportviews.InEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef790>

error: networkx.classes.multidigraph.MultiDiGraph.out_degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/multidigraph.pyi:9
networkx.classes.reportviews.OutMultiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef910>

error: networkx.classes.multidigraph.MultiDiGraph.out_edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/multidigraph.pyi:24
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdef710>

error: networkx.classes.multidigraph.MultiDiGraph.pred variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/multidigraph.pyi:17
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdef5d0>

error: networkx.classes.multidigraph.MultiDiGraph.succ variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/multidigraph.pyi:16
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdef550>

error: networkx.classes.multigraph.MultiGraph.adj variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/multigraph.pyi:40
networkx.classes.coreviews.AdjacencyView[_Node`1, _Node`1, builtins.dict[builtins.str, Any]]
Runtime:
<functools.cached_property object at 0x7fe1cfdee[510](https://github.com/python/typeshed/actions/runs/9539901601/job/26312227412#step:5:511)>

error: networkx.classes.multigraph.MultiGraph.degree variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/multigraph.pyi:74
networkx.classes.reportviews.DiDegreeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdeee50>

error: networkx.classes.multigraph.MultiGraph.edges variable differs from runtime type functools.cached_property[Any]
Stub: in file /home/runner/work/typeshed/typeshed/stubs/networkx/networkx/classes/multigraph.pyi:70
networkx.classes.reportviews.OutEdgeView[_Node`1]
Runtime:
<functools.cached_property object at 0x7fe1cfdeedd0>

Found 75 errors (checked 559 modules)

**********************************************************************

Python version: Python 3.11.9 (main, May  9 2024, 14:13:20) [GCC 11.4.0]

Ran with the following environment:
mypy==1.10.0
mypy-extensions==1.0.0
networkx==3.2.1
numpy==2.0.0
pandas==2.2.2
pip==24.0
python-dateutil==2.9.0.post0
pytz==2024.1
setuptools==70.0.0
six==1.16.0
typing_extensions==4.12.2
tzdata==2024.1
wheel==0.43.0

@srittau srittau added stubs: improvement Improve/refactor existing annotations, other stubs issues help wanted An actionable problem of low to medium complexity where a PR would be very welcome labels Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted An actionable problem of low to medium complexity where a PR would be very welcome stubs: improvement Improve/refactor existing annotations, other stubs issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant