-
Notifications
You must be signed in to change notification settings - Fork 3
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: consistent doc string wrapping #116
Conversation
def __init__(self, value): | ||
""" | ||
:param value: The measure of the unit in radians. | ||
""" |
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.
The init should not have a doc string per normal python conventions.
CodSpeed Performance ReportMerging #116 will degrade performances by 30.89%Comparing Summary
Benchmarks breakdown
|
@@ -213,15 +207,8 @@ def xValue(self, *args, **kwargs): | |||
pos = parse_pos_args(args, kwargs, "x", "y") | |||
return self._xValue(pos) | |||
|
|||
@implements(_galsim.GSObject._xValue) |
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.
There are a few formally private but clearly public-facing methods like this one that I went ahead and wrapped.
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.
Just a few small changes, otherwise looks great! Thanks, this made the codebase much smaller
Co-authored-by: Ismael Mendoza <[email protected]>
Co-authored-by: Ismael Mendoza <[email protected]>
Co-authored-by: Ismael Mendoza <[email protected]>
This PR ensures we are using consistent doc string wrapping via the
implements
decorator.I have only wrapped public functions/methods except for a few cases where things were private but clearly meant to be more public facing.
closes #71