-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: fix _validate_names docstring #29729
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
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 get fixing the doc-string (because we aren't issuing a warning).
Not sure why we are removing the return
part of the logic though.
Because the one place where the function is called, the returned value isn’t assigned to snything |
Check if the `names` parameter contains duplicates. | ||
|
||
If duplicates are found, we issue a warning before returning. | ||
Raise ValueError if the `names` parameter contains duplicates. |
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.
can you add a Raises section
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.
updated+green
thanks @jbrockmendel |
No description provided.