You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
I have a docstring that contains both unicode characters and backslashes.
I cannot find any way to make the pep257 happy with this, though ur"""docstring""" seems suitable.
$ cat > test.py <<EOF
"""Some test module."""
# encoding: utf-8
def func(self):
ur"""docstring with \backslashes and unicode, コンニチハ."""
pass
EOF
$ pep257 test.py
test.py:4 in public function `func`:
D301: Use r""" if any backslashes in a docstring
test.py:4 in public function `func`:
D300: Use """triple double quotes""" (found '-quotes)
$ PAGER=cat python
>>> from test import func
>>> help(func)
Help on function func in module test:
func(self)
docstring with \backslashes and unicode, コンニチハ.
>>>
The text was updated successfully, but these errors were encountered:
I have a docstring that contains both unicode characters and backslashes.
I cannot find any way to make the pep257 happy with this, though
ur"""docstring"""
seems suitable.The text was updated successfully, but these errors were encountered: