Skip to content

BUG: AttributeError in scripts/validate_docstrings for doc.returns[0].name #27622

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

Closed
albertvillanova opened this issue Jul 27, 2019 · 1 comment

Comments

@albertvillanova
Copy link
Contributor

Code Sample, a copy-pastable example if possible

python scripts/validate_docstrings.py pandas.Series.item
Traceback (most recent call last):
  File "scripts/validate_docstrings.py", line 1047, in <module>
    args.ignore_deprecated,
  File "scripts/validate_docstrings.py", line 969, in main
    result = validate_one(func_name)
  File "scripts/validate_docstrings.py", line 836, in validate_one
    errs, wrns, examples_errs = get_validation_data(doc)
  File "scripts/validate_docstrings.py", line 760, in get_validation_data
    if len(doc.returns) == 1 and doc.returns[0].name:
AttributeError: 'tuple' object has no attribute 'name'

Problem description

I get an AttributeError when running the script.

Expected Output

Output of pd.show_versions()

[paste the output of pd.show_versions() here below this line]

albertvillanova added a commit to albertvillanova/pandas that referenced this issue Jul 27, 2019
@albertvillanova albertvillanova changed the title BUG: AttributeError in script/validate_docstrings for doc.returns[0].name BUG: AttributeError in scripts/validate_docstrings for doc.returns[0].name Jul 27, 2019
@datapythonista
Copy link
Member

Based on the discussion in #27623 I think this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants