From 16628310230078eaaa9d65fb12ccb1ce941680f5 Mon Sep 17 00:00:00 2001 From: savanto Date: Sun, 28 Dec 2025 12:52:26 +0000 Subject: [PATCH] [imaplib] `IMAP4.append` returns a tuple `(status, [data])` (#15183) --- stdlib/imaplib.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/imaplib.pyi b/stdlib/imaplib.pyi index 39fd46652..1f0e01060 100644 --- a/stdlib/imaplib.pyi +++ b/stdlib/imaplib.pyi @@ -61,7 +61,7 @@ class IMAP4: def socket(self) -> _socket: ... def recent(self) -> _CommandResults: ... def response(self, code: str) -> _CommandResults: ... - def append(self, mailbox: str, flags: str, date_time: str, message: ReadableBuffer) -> str: ... + def append(self, mailbox: str, flags: str, date_time: str, message: ReadableBuffer) -> tuple[str, _list[bytes]]: ... def authenticate(self, mechanism: str, authobject: Callable[[bytes], bytes | None]) -> tuple[str, str]: ... def capability(self) -> _CommandResults: ... def check(self) -> _CommandResults: ...