From fc69e0053ab1a66987355c3bccfaa9174a555e20 Mon Sep 17 00:00:00 2001 From: John Villalovos Date: Fri, 17 Jun 2022 23:45:10 -0700 Subject: [PATCH] imaplib: fix exception types (#8095) Closes #8094 --- stdlib/imaplib.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/imaplib.pyi b/stdlib/imaplib.pyi index b08210077..af575c021 100644 --- a/stdlib/imaplib.pyi +++ b/stdlib/imaplib.pyi @@ -19,9 +19,9 @@ _CommandResults: TypeAlias = tuple[str, list[Any]] _AnyResponseData: TypeAlias = list[None] | list[bytes | tuple[bytes, bytes]] class IMAP4: - error: type[Exception] - abort: type[Exception] - readonly: type[Exception] + class error(Exception): ... + class abort(error): ... + class readonly(abort): ... mustquote: Pattern[str] debug: int state: str