From 611fa18b5ca993065078caff063973832bcf82a0 Mon Sep 17 00:00:00 2001 From: Jaakko Lappalainen Date: Fri, 20 May 2022 11:45:20 +0100 Subject: [PATCH] Use `bytes` for `resp` param of `imaplib.Internaldate2tuple` (#7892) --- stdlib/imaplib.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/imaplib.pyi b/stdlib/imaplib.pyi index eef1c1957..b08210077 100644 --- a/stdlib/imaplib.pyi +++ b/stdlib/imaplib.pyi @@ -169,7 +169,7 @@ class _Authenticator: def encode(self, inp: bytes) -> str: ... def decode(self, inp: str) -> bytes: ... -def Internaldate2tuple(resp: str) -> time.struct_time: ... +def Internaldate2tuple(resp: bytes) -> time.struct_time: ... def Int2AP(num: int) -> str: ... def ParseFlags(resp: str) -> tuple[str, ...]: ... def Time2Internaldate(date_time: float | time.struct_time | str) -> str: ...