Skip to content
This repository has been 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 opened this issue May 11, 2023 · 0 comments

Comments

@DetachHead
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant