From 16ed540c952db5cd4193424c37b01da5c4633431 Mon Sep 17 00:00:00 2001 From: NAKAMURA Yoshitaka Date: Sat, 23 Jun 2018 00:43:25 +0900 Subject: [PATCH] Fix type for imaplib.IMAP4.error and related (#2273) --- stdlib/2and3/imaplib.pyi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stdlib/2and3/imaplib.pyi b/stdlib/2and3/imaplib.pyi index 4f53146ab..ecf80c0ff 100644 --- a/stdlib/2and3/imaplib.pyi +++ b/stdlib/2and3/imaplib.pyi @@ -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 = ...