Skip to content

Fix rustworkx.layers return typing #1340

@amirebrahimi

Description

@amirebrahimi

Information

  • rustworkx version: 0.14.2
  • Python version: 3.9.12
  • Rust version:
  • Operating system: Windows 10

What is the current behavior?

rustworkx.layers has typing info stating it returns a list[int], which causes an issue with mypy.

What is the expected behavior?

Should be list[list[int]].

Steps to reproduce the problem

Make use of the function somewhere and run mypy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions