Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

D300 and D301 false positives on docstrings with escaped triple quotes in them #643

Open
@DetachHead

Description

@DetachHead
def foo():
    """
    here's how to make a docstring: `\"\"\"`
    """
Use """triple double quotes""" (found """-quotes) (D300)
Use r""" if any backslashes in a docstring (D301)

adding r to the string causes it to render incorrectly, with the backslashes:
image
image

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