From 38015e19352adb91b3b4931b8902b8eaa602805f Mon Sep 17 00:00:00 2001 From: John Villalovos Date: Sat, 9 Jul 2022 01:57:29 -0700 Subject: [PATCH] imaplib: annotate `imaplib.Commands` (#8262) Add type hints for `imaplib.Commands` which is defined here in imaplib.py: https://github.com/python/cpython/blob/6442a9dd212fa18343db21849cf05c0181662c1f/Lib/imaplib.py#L58-L102 Closes #8261 --- stdlib/imaplib.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/imaplib.pyi b/stdlib/imaplib.pyi index 347fee386..6f0998198 100644 --- a/stdlib/imaplib.pyi +++ b/stdlib/imaplib.pyi @@ -18,6 +18,8 @@ _CommandResults: TypeAlias = tuple[str, list[Any]] _AnyResponseData: TypeAlias = list[None] | list[bytes | tuple[bytes, bytes]] +Commands: dict[str, tuple[str, ...]] + class IMAP4: class error(Exception): ... class abort(error): ...