Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show missing type hints & inline class base class in API docs (backport #13483) #13516

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Dec 2, 2024

The API docs were leaving off some important information:

  • For inlined classes, we weren't showing the parent class. This impacts when using .. autoclass:: on a module page; it was already fine for .. autosummary::.
  • Generally, we left off type hints for parameters without docstring, along with some return types like None. These type hints are useful.

To land this PR, I had to make a fix similar to #10772 to fix ambiguous type hints.

I also set up aliases for the extremely long types for EstimatorPubLike and SamplerPubLike. See Qiskit/qiskit-ibm-runtime#1877 for more context on that problem.


This is an automatic backport of pull request #13483 done by Mergify.

* Show missing type hints & inline class values in API docs

* Fix fmt, oops

* Fix density matrix use of Circuit

(cherry picked from commit cc30af5)
@mergify mergify bot requested a review from a team as a code owner December 2, 2024 15:40
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the following people are relevant to this code:

@github-actions github-actions bot added documentation Something is not clear or an error documentation Changelog: None Do not include in changelog labels Dec 2, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12122770821

Details

  • 8 of 8 (100.0%) changed or added relevant lines in 7 files are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.01%) to 88.917%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 3 91.98%
Totals Coverage Status
Change from base Build 12071664567: 0.01%
Covered Lines: 79064
Relevant Lines: 88919

💛 - Coveralls

Copy link
Contributor

@raynelfss raynelfss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for addressing the ambiguous Instruction imports as well

@Eric-Arellano Eric-Arellano added this pull request to the merge queue Dec 2, 2024
Merged via the queue into stable/1.3 with commit c70a81f Dec 2, 2024
20 checks passed
@Eric-Arellano Eric-Arellano deleted the mergify/bp/stable/1.3/pr-13483 branch December 2, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog documentation Something is not clear or an error documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants