-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC docstring (shape= -> of shape) #14640
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
Conversation
… into doc/array-shape
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. Single question: you make the sample_weight
docstring consistent but you removed the default=None
. I was checking the documentation but this is not mentioned. What is the policy for the default
in this case.
I didn't really try to touch the |
OK it makes sense to me. We might just think about adding these into the contributing guide we are settled. |
I see three options with handling
|
I kinda like option 3 |
I think I don't have permissions to do that @glemaitre , I'll send another commit to get them run. |
@glemaitre they pass now :) |
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.
What do you think of adding a small test where if shape
is in parameters docstring it must match the following regex:
of shape \([\w, ]+\)
makes sense to me, I'd just add a |
Still my +1. You can add a test if you want. |
I rather have the test in a separate PR though. |
Fine with me |
This PR makes our docstrings a bit more compliant with our brand-new style (#12356)