summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/write_pyi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/write_pyi.py b/tools/write_pyi.py
index 376163b..aec1813 100644
--- a/tools/write_pyi.py
+++ b/tools/write_pyi.py
@@ -217,7 +217,7 @@ def _generate_stub_for_meth(
fn_doc = base_method.__doc__ if base_method else fn.__doc__
has_docs = gen_docs and fn_doc is not None
- docs = '"""' + f"{fn_doc}" + '"""' if has_docs else ""
+ docs = 'r"""' + f"{fn_doc}" + '"""' if has_docs else ""
func_text = textwrap.dedent(
f"""