[networkx] Cannot assign concrete types to Graph[Hashable]
#12186
Labels
stubs: false positive
Type checkers report false errors
Graph[Hashable]
#12186
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]
).The text was updated successfully, but these errors were encountered: