diff options
author | CaselIT <cfederico87@gmail.com> | 2023-03-06 22:15:15 +0100 |
---|---|---|
committer | CaselIT <cfederico87@gmail.com> | 2023-03-10 19:27:55 +0100 |
commit | bc0c305b7c2cc0401e250fcd6a725aacecdd6e33 (patch) | |
tree | 57634b5961cb3a7d4b711f4d4e0a1b77f40d2a13 /tools | |
parent | 555fddf015ae38e1f44e829645d8b09b175cb0c4 (diff) | |
download | alembic-bc0c305b7c2cc0401e250fcd6a725aacecdd6e33.tar.gz |
Fix unknown types reported by pyright
Fixed various typing issues observed with pyright, including issues
involving the combination of :class:`.Function` and
:meth:`.MigrationContext.begin_transaction`.
Fixes: #1191
Fixes: #1201
Change-Id: I9856a8f59c22130c8bbcbed3e19cf2e8a8bf0608
Diffstat (limited to 'tools')
-rw-r--r-- | tools/write_pyi.py | 2 |
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""" |