-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add type annotations to three_dimensions.py
#4497
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
base: main
Are you sure you want to change the base?
Add type annotations to three_dimensions.py
#4497
Conversation
chopan050
left a comment
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 your contribution!
I left suggestions on the code. Most of them are minor changes, but there's a specific suggestion which is probably controversial and might require some discussion: making the checkerboard_colors None instead of False. Maybe it's better to simply use Literal[False] in this PR, discuss the topic, and then possibly change it to None in a follow-up PR?
chopan050
left a comment
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 your contribution!
I left suggestions on the code. Most of them are minor changes, but there's a specific suggestion which is probably controversial and might require some discussion: making the checkerboard_colors None instead of False. Maybe it's better to simply use Literal[False] in this PR, discuss the topic, and then possibly change it to None in a follow-up PR?
| The opacity of the :class:`Surface`, from 0 being fully transparent | ||
| to 1 being fully opaque. Defaults to 1. | ||
| checkerboard_colors | ||
| ng individual faces alternating colors. Overrides ``fill_color``. |
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 wonder what word is missing here ...
I would prefer that approach. The changes are quite easy to make (see d5c54cf), but it would be nice to discuss this among the developers. |
Overview: What does this pull request change?
Motivation and Explanation: Why and how do your changes improve the library?
Links to added or changed documentation pages
Further Information and Comments
Reviewer Checklist