Open EarlMilktea opened 2 months ago
Several functions have arguments annotated as Graph[Hashable] or similar (ex. nx.number_of_selfloops).
Graph[Hashable]
nx.number_of_selfloops
As Graph is invariant, we encounter false-positive type errors when trying to assign concrete types (say Graph[int]).
Graph
Graph[int]
I just encountered this as well
Description
Several functions have arguments annotated as
Graph[Hashable]
or similar (ex.nx.number_of_selfloops
).As
Graph
is invariant, we encounter false-positive type errors when trying to assign concrete types (sayGraph[int]
).