mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Fix type for imaplib.IMAP4.error and related (#2273)
This commit is contained in:
committed by
Jelle Zijlstra
parent
39d95f16cf
commit
16ed540c95
@@ -6,15 +6,15 @@ import sys
|
||||
import time
|
||||
from socket import socket as _socket
|
||||
from ssl import SSLSocket
|
||||
from typing import Any, Callable, Dict, IO, List, Optional, Pattern, Text, Tuple, Union
|
||||
from typing import Any, Callable, Dict, IO, List, Optional, Pattern, Text, Tuple, Type, Union
|
||||
|
||||
CommandResults = Tuple[str, List[Any]]
|
||||
|
||||
|
||||
class IMAP4:
|
||||
error: Exception
|
||||
abort: Exception
|
||||
readonly: Exception
|
||||
error: Type[Exception] = ...
|
||||
abort: Type[Exception] = ...
|
||||
readonly: Type[Exception] = ...
|
||||
mustquote: Pattern[Text] = ...
|
||||
debug: int = ...
|
||||
state: str = ...
|
||||
|
||||
Reference in New Issue
Block a user