-
-
Notifications
You must be signed in to change notification settings - Fork 544
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
Spurious warnings about optional tags #36920
Comments
Hey! I was trying to post on Google Groups, but it seems that I don't have permission to do so. Therefore, I am posting it here. @dcoudert, could you please provide more information regarding reproducing this? It seems that there have been some changes because I just saw a file described in the first warning, which is src/sage/plot/plot.py. However, I couldn't find anything similar to sig_on_count, and the line described in that warning does not contain any code; it only includes the end of a comment block. |
As explained by @kwankyu above, this is a side effect of other mechanisms. I have no clue how to fix that. |
I'll check if I have fixes for the warnings in |
Ok, thank you ! And if changes are needed then please tell me, I will be happy to help in this. |
…ix `sig_on_count` doctest dataflow warnings <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> Fixes sagemath#36920 <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> In part cherry picked from: - sagemath#35095 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [ ] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> - Depends on sagemath#36905 (merged here) <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36950 Reported by: Matthias Köppe Reviewer(s): David Coudert
…ix `sig_on_count` doctest dataflow warnings <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> Fixes sagemath#36920 <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> In part cherry picked from: - sagemath#35095 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [ ] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> - Depends on sagemath#36905 (merged here) <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36950 Reported by: Matthias Köppe Reviewer(s): David Coudert
Steps To Reproduce
From sage-devel thread
https://groups.google.com/g/sage-devel/c/kagz-697Hts
[David Coudert] observed some doctest warnings that I don't know how to fix. This is certainly a side effect of the modularization.
An initial investigation suggests:
The string
sig_on_count() # check sig_on/off pairings (virtual doctest)
is fromsrc/sage/doctest/sources.py
line 234.As I understand it, the warning is caused by a bug in the method
_create_doctests()
in the same file, which fails to add optional tags correctly to the string.Expected Behavior
No warning.
Actual Behavior
Spurious warnings
Additional Information
@mkoeppe would know how to fix it.
Environment
Checklist
The text was updated successfully, but these errors were encountered: