Skip to content

Commit c224c9d

Browse files
committedMay 11, 2022
avoided potential issue with triple quotes
1 parent 3beefbc commit c224c9d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎lib_template.jinja

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ if __name__ == "__main__":
2121
location = Path(__file__)
2222
pyi_file = location.parent / 'endpoint_wrapper.pyi'
2323
import textwrap
24-
pyi = textwrap.dedent("""{{ pyi }}""")
24+
25+
# use triple single quotes to allow triple double quotes to
26+
# occur in the pyi source.
27+
pyi = textwrap.dedent('''{{ pyi }}''')
2528
pyi_file.write_text(pyi)
2629
print(f"dropped {pyi_file}.")
2730

0 commit comments

Comments
 (0)
Please sign in to comment.