imaplib: fix exception types (#8095)

Closes #8094
This commit is contained in:
John Villalovos
2022-06-17 23:45:10 -07:00
committed by GitHub
parent c31baed61d
commit fc69e0053a

View File

@@ -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