From ce3c9e05c0d228cb7847aef59583fab3d62ebf8e Mon Sep 17 00:00:00 2001 From: karl ding Date: Fri, 2 Oct 2020 19:58:24 -0700 Subject: [PATCH] imaplib: Add new functions from Python 3.9 (#4596) Add imaplib.IMAP4.unselect() --- stdlib/2and3/imaplib.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/2and3/imaplib.pyi b/stdlib/2and3/imaplib.pyi index 2179167bb..bb9e9c6db 100644 --- a/stdlib/2and3/imaplib.pyi +++ b/stdlib/2and3/imaplib.pyi @@ -93,6 +93,8 @@ class IMAP4: def thread(self, threading_algorithm: str, charset: str, *search_criteria: str) -> _CommandResults: ... def uid(self, command: str, *args: str) -> _CommandResults: ... def unsubscribe(self, mailbox: str) -> _CommandResults: ... + if sys.version_info >= (3, 9): + def unselect(self) -> _CommandResults: ... def xatom(self, name: str, *args: str) -> _CommandResults: ... def print_log(self) -> None: ...