-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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: importing manim should not trigger pygments.styles.get_all_styles #3797
fix: importing manim should not trigger pygments.styles.get_all_styles #3797
Conversation
Removed the Code.styles_list attribute. Rewrote the documentation to say that a list of all styles can be generated by calling list(pygments.styles.get_all_styles()). The example in the docstring of Code was rewritten to use an explicit code style name.
Hey, I'll take a look at this within the next few days, as I'm a bit busy right now. Just wanted to let you know that we see this PR and intend to review it :) |
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.
These changes look mostly good to me! Thanks for taking on this issue :)
I've left a few questions/comments (they're a little bit pedantic, so bear with me!) but after that I think this PR is good to go!
Thanks for helping make Manim better ✨
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
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! Thanks for your work here!
Overview: What does this pull request change?
Removed the
Code.styles_list
attribute.Added new class method
Code.get_styles_list()
.Rewrote the documentation to say that a list of all styles can be generated by calling a new class method.
The example in the docstring of Code was rewritten to use an explicit code style name.
Motivation and Explanation: Why and how do your changes improve the library?
See #3713 for issue.
Links to added or changed documentation pages
https://manimce--3797.org.readthedocs.build/en/3797/
Further Information and Comments
First contribution!
Reviewer Checklist