Deprecation warning for `\*\*` in docstrings
Closed this issue · 0 comments
ashwin153 commented
For example,
Line 481 in 19971ec
Causes the following deprecation warning.
DeprecationWarning: invalid escape sequence \*
Here's a reproduction.
import warnings
warnings.simplefilter("always")
x = "\*\*kwargs"
# <stdin>:1: DeprecationWarning: invalid escape sequence \*
Definitely not a pressing issue, but it pollutes my build logs. I'd suggest adding another slash (e.g., \\*
). Sphinx appears to render \\*
and \*
the same way. For example, here's how they both render on a sample site.