-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Fix PR06 errors in docstrings ('Parameter "{param_name}" type should use "{right_type}" instead of "{wrong_type}"') #28253
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
Comments
I'll have a go at the first 10 here |
I can join on this and take the second 10 (from pandas.core.resample up to pandas.to_datetime). |
Thanks Adam! A lot of these should be straightforward, but I've noticed there are some cases where we will want to change validate_docstrings.py -- for example, it fails on parameter type 'basestring' because the validation is done with a simple 'in' test, and 'string' in 'basestring == True. Additionally, the tests for validate_docstrings.py are not being executed as part of the main pytest target (not sure if this should be changed), so we need to run test_validate_docstrings.py explicitly with pytest to check any changes to the script are working properly. |
Just FYI, we can remove all references to basestring. That's a Python 2 thing which we've removed. |
take |
The output of python |
Closing as #28724 covers this specific case. |
link to original issue
The output of
python scripts/validate_docstrings.py --errors=PR06
returns 257 instances of 'Parameter "{param_name}" type should use "{right_type}" instead of "{wrong_type}'Given the large number of cases, it probably makes sense to break them out by class:
The text was updated successfully, but these errors were encountered: