-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fix a docstring rst link rendering within an inline literal #13567
Conversation
One or more of the following people are relevant to this code:
|
Pull Request Test Coverage Report for Build 12351089492Details
💛 - Coveralls |
@@ -725,7 +725,7 @@ def operation_names(self): | |||
|
|||
@property | |||
def instructions(self): | |||
"""Get the list of tuples ``(:class:`~qiskit.circuit.Instruction`, (qargs))`` | |||
"""Get the list of tuples (:class:`~qiskit.circuit.Instruction`, (qargs)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing this! What do you think of maintaining the code formatting for the rest of the tuple? It would look like this:
"""Get the list of tuples (:class:`~qiskit.circuit.Instruction`, (qargs)) | |
"""Get the list of tuples ``(``:class:`~qiskit.circuit.Instruction` ``, (qargs))`` |
It's not perfect but I find it a bit easier to read, probably personal choice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bikeshedding alert :-) before I opened the PR we had a little poll (of 3) here at the lab which included your suggestion and the applied fix was chosen unanimously. Personally I find it slightly cleaner visually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I am not to stand against unanimous votes. This change also looks good :)
(cherry picked from commit 40aa70c)
…13572) (cherry picked from commit 40aa70c) Co-authored-by: Eli Arbel <[email protected]>
Changing from this:
to this:
If someone knows if there is a way to properly render an rst link within an inline literal text, I'd love to know.