-
Notifications
You must be signed in to change notification settings - Fork 294
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
Add type hints to shapes #857
Conversation
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.
add some gap?
from typing import ( | ||
Union, | ||
Optional, | ||
Tuple, | ||
List | ||
) |
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.
how about just from typing import Union, Optional, Tuple, List
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.
As imports get longer, it is better to put them on separate line. I do not actually know how many are needed to start putting them on separate lines though.(needs more input)
@@ -1395,7 +1424,7 @@ def border_color(self, values): | |||
self._update_color() | |||
|
|||
@property | |||
def color(self): | |||
def color(self) -> Tuple[int, int, int, int]: |
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.
how about add a type named color rgba
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.
Maybe
In the ellipse class, segments is not in the docstrings. Is this a bug @benmoran56 or is this something that just needs to be updated? |
No description provided.