Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
pablogsal merged 12 commits into
python:masterpython/cpython:masterfrom
isidentical:bpo-38870-docstringsisidentical/cpython:bpo-38870-docstringsCopy head branch name to clipboard
Mar 2, 2020
Merged

bpo-38870: Docstring support for function/class/module nodes#17760
pablogsal merged 12 commits into
python:masterpython/cpython:masterfrom
isidentical:bpo-38870-docstringsisidentical/cpython:bpo-38870-docstringsCopy head branch name to clipboard

Conversation

@isidentical

@isidentical isidentical commented Dec 30, 2019

Copy link
Copy Markdown
Member

@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
Comment thread Lib/ast.py Outdated
isidentical and others added 2 commits March 1, 2020 23:28
Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com>
Comment thread Lib/ast.py Outdated
Comment thread Lib/ast.py
Comment thread Lib/ast.py
@codecov

This comment has been minimized.

Comment thread Lib/test/test_unparse.py Outdated
Comment thread Lib/test/test_unparse.py Outdated
Comment thread Lib/test/test_unparse.py Outdated
Comment thread Lib/test/test_unparse.py Outdated
Comment thread Lib/test/test_unparse.py Outdated
Comment thread Lib/test/test_unparse.py
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.

@pablogsal pablogsal left a comment

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.

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 <Pablogsal@gmail.com>
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.