Skip to content

PyInk formatting issue for multi-line docstrings. #8

@veritas9872

Description

@veritas9872

Hello, I have tried out the new PyInk pre-commit, and I have found a difference with the behavior in Black.
For multiline docstrings in file definitions, PyInk appears to move the last triple double quotes to the end of the last line instead of giving them their own line.
For example,

"""This is my file.
It works like this.
"""
import something

becomes as follows.

"""This is my file.
It works like this."""
import something

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions