Skip to content

[networkx] Cannot assign concrete types to Graph[Hashable]  #12186

Open
@EarlMilktea

Description

@EarlMilktea

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 (say Graph[int]).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions