-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
sage.graphs
: More modularization
#35718
sage.graphs
: More modularization
#35718
Conversation
The linter failures are not coming from the PR. |
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.
I noted a few places in which the alignement of the # optional ...
is different than in the other files. Otherwise, this looks good to me. I also checked the examples you changed and this seems ok.
src/sage/graphs/generic_graph.py
Outdated
@@ -19490,8 +19538,8 @@ def latex_options(self): | |||
sage: opts = g.latex_options() | |||
sage: opts | |||
LaTeX options for Petersen graph: {} | |||
sage: opts.set_option('tkz_style', 'Classic') | |||
sage: opts | |||
sage: opts.set_option('tkz_style', 'Classic') # optional - sage.plot |
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.
different alignment
src/sage/graphs/generic_graph.py
Outdated
sage: g.set_latex_options(tkz_style='Welsh') | ||
sage: opts = g.latex_options() | ||
sage: opts.get_option('tkz_style') | ||
sage: g.set_latex_options(tkz_style='Welsh') # optional - sage.plot |
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.
different alignment
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 spotting these! Fixed now.
e519145
to
2891cd8
Compare
Documentation preview for this PR (built with commit 2891cd8) is ready! 🎉 |
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.
LGTM.
Thank you! |
📚 Description
Mostly using
lazy_import
and adding# optional
annotations to doctests.📝 Checklist
⌛ Dependencies