Skip to content

Function docstring newlines#1

Open
jpy-git wants to merge 8 commits into
module_docstring_newlinesfrom
function_docstring_newlines
Open

Function docstring newlines#1
jpy-git wants to merge 8 commits into
module_docstring_newlinesfrom
function_docstring_newlines

Conversation

@jpy-git
Copy link
Copy Markdown
Owner

@jpy-git jpy-git commented Apr 5, 2022

Description

Closes psf#2370. Remove newlines after function docstring.
e.g.

def foo():
    """hello"""

    a = 1

becomes

def foo():
    """hello"""
    a = 1

Builds on psf#2996

This should help automatically fix D202 from darglint as well:

D202 No blank lines allowed after function docstring

Checklist - did you ...

  • Add a CHANGELOG entry if necessary?
  • Add / update tests if necessary?
  • Add new / update outdated documentation?

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 5, 2022

diff-shades results comparing this PR (faf6500) to main (421383d). The full diff is available in the logs under the "Generate HTML diff report" step.

╭────────────────────────── Summary ──────────────────────────╮
│ 22 projects & 769 files changed / 2245 changes [+115/-2130] │
│                                                             │
│ ... out of 2 177 706 lines, 10 484 files & 23 projects      │
╰─────────────────────────────────────────────────────────────╯

Differences found.

What is this? | Workflow run | diff-shades documentation

@jpy-git jpy-git force-pushed the module_docstring_newlines branch from a973c88 to 49c16c9 Compare April 5, 2022 23:35
@jpy-git jpy-git force-pushed the function_docstring_newlines branch from 941b452 to faf6500 Compare April 5, 2022 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant