-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
More fixing extra whitespace surrounding docstrings #9707
Conversation
These cases are compounded by other quirks or typos in the docstrings. Both the extra whitespace and quirks are fixed here.
Pull Request Test Coverage Report for Build 4319779086
💛 - Coveralls |
qiskit/qasm/qasmlexer.py
Outdated
r"\"([^\\\"]|\\.)*\" " | ||
r"\"([^\\\"]|\\.)*\"" |
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.
This might be dangerous, but I don't 100% know - the Python version of lex
interprets docstrings, so the whitespace might be significant. (But I very much don't know.) That said, if this commit does have an effect, then I think your new form is correct anyway.
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.
Oh yeah, now I remember. black
will insert that space again.
* Fix extra whitespace surrounding docstrings These cases are compounded by other quirks or typos in the docstrings. Both the extra whitespace and quirks are fixed here. * Prevent black from adding trailing space in docstring --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This fixes some formatting typos in some docstrings.
This is a followup to #9689. There are four cases found as follows
These cases are compounded by other quirks or typos in the docstrings. Both the extra whitespace and quirks are fixed manually here.
Summary
Details and comments