Fix type for imaplib.IMAP4.error and related (#2273)

This commit is contained in:
NAKAMURA Yoshitaka
2018-06-23 00:43:25 +09:00
committed by Jelle Zijlstra
parent 39d95f16cf
commit 16ed540c95

View File

@@ -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 = ...