-
Notifications
You must be signed in to change notification settings - Fork 90
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
Header generation broken for specific dunder method #1275
Comments
The problem with this method is that Sphinx generated the <dt class="sig sig-object py" id="array__"> In this case, I think it should be fixed in the qiskit repo, by adding the module's name in front of the method similar to how the rest of the methods of that page are defined. This method is special-cased by setting the module to The change will also fix a cross-reference to And this will be the new id that will help set the correct header: <dt class="sig sig-object py" id="qiskit.circuit.array"> What do you think? I can open a PR there if you think it's a good solution. I've been trying different things like escaping the underscores, but it didn't work. Another solution could be to change our script to use the signature for all headers, but not sure if that's feasible always (I can test it) and it will increase the complexity of the script even more. |
Great investigation, @arnaucasau! The output would be wrong to call it What happens if you use Re the broken cross-reference, can that be fixed by using the fully qualified path to |
Nothing changes in that case. It sets the <dl class="py function">
<dt class="sig sig-object py" id="array__">
Yes, we can fix params by using |
Hm, what about setting the module to |
This PR regenerates qiskit 1.1 applying a fix for Qiskit#1275 Closes Qiskit#1275
documentation/docs/api/qiskit/dev/circuit.mdx
Lines 652 to 654 in c387562
This should be
__array__
The text was updated successfully, but these errors were encountered: