-
-
Notifications
You must be signed in to change notification settings - Fork 46.8k
remove function overhead #2233
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
remove function overhead #2233
Conversation
add type hints
Hey @lance-pyles, TravisCI finished with status TravisBuddy Request Identifier: 9fad9e40-cde2-11ea-98fb-f5dcae6af814 |
@@ -14,7 +14,7 @@ def surface_area_cube(side_length: Union[int, float]) -> float: | |||
>>> surface_area_cube(3) | |||
54 | |||
""" | |||
return 6 * pow(side_length, 2) | |||
return 6 * side_length ** 2 |
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.
Are we going to bounce back and forth every 48 hours? #2223 (review) ;-)
maths/area.py
Outdated
@@ -5,7 +5,7 @@ | |||
from typing import Union |
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.
Travis not happy... ./maths/area.py:5:1: F401 'typing.Union' imported but unused
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 swear that line keeps coming back by itself :)
Should I merge it quick before that import reappears?!? |
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 believe...the Union
now disappears. Thank you for your pull request!🤩
How about we just leave it there? Or we can ignore this file |
* remove function overhead add type hints * remove unused import
add type hints
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}
.