mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 13:33:59 +08:00
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:
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user