Qiskit / rustworkx

A high performance Python graph library implemented in Rust.
https://www.rustworkx.org
Apache License 2.0
1.03k stars 145 forks source link

Specify `Any` for `PyGraph` and `PyDiGraph` type annotations for pyright compatibility #1246

Open IvanIsCoding opened 1 month ago

IvanIsCoding commented 1 month ago

Closes #1242

This is a pretty annoying PR but it avoids pyright from infering the types as Unknown. Although we will only keep mypy in the CI, pyright is the base for pylance which ships with VSCode. And we got VSCode issues in the past (#832), so I think it's worth supporting.

coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 10675939721

Details


Totals Coverage Status
Change from base Build 10672676557: 0.0%
Covered Lines: 18051
Relevant Lines: 18839

💛 - Coveralls