-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Fix AttributeError in scripts/validate_docstrings for doc.returns[0].name #27623
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 AttributeError in scripts/validate_docstrings for doc.returns[0].name #27623
Conversation
can you add some tests for this |
What version of numpydoc is this? IIRC they have been using named tuples in more recent versions which is preferable from a readability perspective. Does upgrading resolve your issue? |
@WillAyd, yes you are right: since numpydoc version 0.9, they use a Parameter named tuple (numpy/numpydoc@136d4dd); I have v0.8.0 in my pandas dev environment. |
I’d prefer to just bump our min version here for readability. Still pretty new (0.9 came out in April) but I think OK for a dev dependency.
… On Jul 27, 2019, at 11:51 AM, Albert Villanova del Moral ***@***.***> wrote:
@WillAyd <https://github.com/WillAyd>, yes you are right: since numpydoc version 0.9, they use a Parameter named tuple ***@***.*** <numpy/numpydoc@136d4dd>); I have v0.8.0 in my pandas dev environment.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#27623?email_source=notifications&email_token=AAEU4UM33HN2YFO5B7QNOGDQBSKK3A5CNFSM4IHJA6T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD26QV4Y#issuecomment-515705587>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAEU4UMM73AGIPD7L2V5KK3QBSKK3ANCNFSM4IHJA6TQ>.
|
I'm in agreement on this. We can be a little more aggressive for development dependencies. |
We actually already do require this in environment.yaml per #26188 so I don't think anything to do here (unless we care to document further) |
I'm agreement with this. @albertvillanova : I'm closing this because the fix is just to upgrade to |
When you say document, what would you add about upgrading? It’s just doing a |
You have thoroughly documented the creation of the dev environment using the environment.yaml file. However nothing is said about updating it (using the environment.yaml, which might have changed since the last time, with new packages or new version requirements). Nevertheless, if you think it is OK as it is... Nevermind! |
Not saying that I think it's OK as is. I'm just trying to understand what you wanted to do. Why don't you submit a PR, and we can better evaluate. |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff