Skip to content

bpo-38870: Docstring support for function/class/module nodes#17760

Merged
pablogsal merged 12 commits intopython:masterfrom
isidentical:bpo-38870-docstrings
Mar 2, 2020
Merged

bpo-38870: Docstring support for function/class/module nodes#17760
pablogsal merged 12 commits intopython:masterfrom
isidentical:bpo-38870-docstrings

Conversation

@isidentical
Copy link
Copy Markdown
Member

@isidentical isidentical commented Dec 30, 2019

@pablogsal
Copy link
Copy Markdown
Member

@isidentical Can you rebase this against the latest master? Ping me when is ready and I can do another review

@isidentical isidentical force-pushed the bpo-38870-docstrings branch from 621e6e0 to f89548b Compare March 1, 2020 20:20
isidentical and others added 2 commits March 1, 2020 23:28
@codecov

This comment has been minimized.

def test_docstrings_negative_cases(self):
# Test some cases that involve strings in the children of the
# first node but aren't docstrings to make sure we don't have
# False positives.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# False positives.
# false positives.

Copy link
Copy Markdown
Member

@pablogsal pablogsal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Great job, @isidentical 💪 🎉

@pablogsal pablogsal merged commit 89aa469 into python:master Mar 2, 2020
@isidentical isidentical deleted the bpo-38870-docstrings branch March 2, 2020 18:59
sthagen added a commit to sthagen/python-cpython that referenced this pull request Mar 2, 2020
bpo-38870: Add docstring support to ast.unparse (pythonGH-17760)
colesbury referenced this pull request in colesbury/nogil Oct 6, 2021
Allow ast.unparse to detect docstrings in functions, modules and classes and produce
nicely formatted unparsed output for said docstrings.

Co-Authored-By: Pablo Galindo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants