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
This commit is contained in:
John Villalovos
2022-07-09 01:57:29 -07:00
committed by GitHub
parent ee09a67c5c
commit 38015e1935
+2
View File
@@ -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): ...