Skip to content

Commit 38015e1

Browse files
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
1 parent ee09a67 commit 38015e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/imaplib.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ _CommandResults: TypeAlias = tuple[str, list[Any]]
1818

1919
_AnyResponseData: TypeAlias = list[None] | list[bytes | tuple[bytes, bytes]]
2020

21+
Commands: dict[str, tuple[str, ...]]
22+
2123
class IMAP4:
2224
class error(Exception): ...
2325
class abort(error): ...

0 commit comments

Comments
 (0)