From 9d2eab4c754065538499f7630f599272a01c4e7e Mon Sep 17 00:00:00 2001 From: Utkarsh Gupta Date: Sat, 5 Oct 2019 08:12:31 +0530 Subject: [PATCH] imaplib.pyi: Take strings as args instead of a list of strings Fixes: #3289 --- stdlib/2and3/imaplib.pyi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stdlib/2and3/imaplib.pyi b/stdlib/2and3/imaplib.pyi index 1653ae344a26..c22a47533355 100644 --- a/stdlib/2and3/imaplib.pyi +++ b/stdlib/2and3/imaplib.pyi @@ -72,18 +72,18 @@ class IMAP4: def search(self, charset: Optional[str], *criteria: str) -> CommandResults: ... def select(self, mailbox: str = ..., readonly: bool = ...) -> CommandResults: ... def setacl(self, mailbox: str, who: str, what: str) -> CommandResults: ... - def setannotation(self, *args: List[str]) -> CommandResults: ... + def setannotation(self, *args: str) -> CommandResults: ... def setquota(self, root: str, limits: str) -> CommandResults: ... - def sort(self, sort_criteria: str, charset: str, *search_criteria: List[str]) -> CommandResults: ... + def sort(self, sort_criteria: str, charset: str, *search_criteria: str) -> CommandResults: ... if sys.version_info >= (3,): def starttls(self, ssl_context: Optional[Any] = ...) -> CommandResults: ... def status(self, mailbox: str, names: str) -> CommandResults: ... def store(self, message_set: str, command: str, flags: str) -> CommandResults: ... def subscribe(self, mailbox: str) -> CommandResults: ... - def thread(self, threading_algorithm: str, charset: str, *search_criteria: List[str]) -> CommandResults: ... - def uid(self, command: str, *args: List[str]) -> CommandResults: ... + 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: ... - def xatom(self, name: str, *args: List[str]) -> CommandResults: ... + def xatom(self, name: str, *args: str) -> CommandResults: ... def print_log(self) -> None: ... class IMAP4_SSL(IMAP4):