mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
imaplib: annotate imaplib.Commands (#8262)
Add type hints for `imaplib.Commands` which is defined here in
imaplib.py:
6442a9dd21/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