Script gen support - send email with file attachments (#3551)

This commit is contained in:
Shuchang Zheng 2025-09-29 18:37:42 -07:00 committed by GitHub
parent 8fd5db7d12
commit 7afb5190a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 50 additions and 13 deletions

View file

@ -775,15 +775,14 @@ def _build_send_email_statement(block: dict[str, Any]) -> cst.SimpleStatementLin
last_line=cst.SimpleWhitespace(INDENT),
),
),
# TODO: support file attachments?
# cst.Arg(
# keyword=cst.Name("file_attachments"),
# value=_value(block.get("file_attachments", [])),
# whitespace_after_arg=cst.ParenthesizedWhitespace(
# indent=True,
# last_line=cst.SimpleWhitespace(INDENT),
# ),
# ),
cst.Arg(
keyword=cst.Name("file_attachments"),
value=_value(block.get("file_attachments", [])),
whitespace_after_arg=cst.ParenthesizedWhitespace(
indent=True,
last_line=cst.SimpleWhitespace(INDENT),
),
),
cst.Arg(
keyword=cst.Name("label"),
value=_value(block.get("label", "")),