Fix stubtest errors
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start with the stubtest errors in the linked CI job and the pyo3-stub-gen configuration or generated stubs. Trace how quil-rs and qcs-api-client-rust types are imported, including the external-import handling issue; done means the stubs reference this repository’s extension-module re-exports and the CI stubtest passes.
Written by the indexing model from the issue text.
Description
The generated type stubs in this repository are currently not correct, because the API uses PyO3-annotated Rust types from quil-rs and qcs-api-client-rust; in the type stubs, these types are imported from the PyO3 libraries generated in those repositories (quil and qcs_api_client_common), rather than from re-exports in the extension module in this repo. PyO3 types from different extension modules are inherently not the same type, so this makes the type stubs incorrect.
(In addition, as of 8/18/2026, there's an issue in pyo3-stub-gen that apparently prevents it from handling external imports correctly anyway; e.g. quil._quil.program.Program is used as program.Program, but the corresponding import is quil._quil.program.)
We have a bunch of stubtest errors in CI: https://github.com/rigetti/qcs-sdk-rust/actions/runs/18181235477/job/51757243866?pr=553#step:12:1233
- Dominant language
- Rust
- Stars
- 15
- Forks
- 4
- Avg merge
- 10h 36m
- Merged PRs (30d)
- 2
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rigetti/qcs-sdk-rust
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
rigetti/qcs-sdk-rust#593 ·
-
PyPI size limit is a frequent blocker for releases, with no notification that release has failedOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
rigetti/qcs-sdk-rust#607 ·
-
Difficulty 5/5 Over a week Newbie friendliness 12/100
rigetti/qcs-sdk-rust#604 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
rigetti/qcs-sdk-rust#595 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
rigetti/qcs-sdk-rust#591 ·
All issues in rigetti/qcs-sdk-rust
Similar issues
-
chat compiler P1
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
HerringtonDarkholme/hd-lang#2793 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
security-advisory
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MinBZK/regelrecht#2173 ·
-
ci
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
jonathanong/no-mistakes#5804 ·
-
triage: failed
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
oxc-project/tsrs#1277 · 1 comment ·
Maintainers usually reply within 1 day