Skip to content

Commit 16ed540

Browse files
nakamurayJelleZijlstra
authored andcommitted
Fix type for imaplib.IMAP4.error and related (#2273)
1 parent 39d95f1 commit 16ed540

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/2and3/imaplib.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import sys
66
import time
77
from socket import socket as _socket
88
from ssl import SSLSocket
9-
from typing import Any, Callable, Dict, IO, List, Optional, Pattern, Text, Tuple, Union
9+
from typing import Any, Callable, Dict, IO, List, Optional, Pattern, Text, Tuple, Type, Union
1010

1111
CommandResults = Tuple[str, List[Any]]
1212

1313

1414
class IMAP4:
15-
error: Exception
16-
abort: Exception
17-
readonly: Exception
15+
error: Type[Exception] = ...
16+
abort: Type[Exception] = ...
17+
readonly: Type[Exception] = ...
1818
mustquote: Pattern[Text] = ...
1919
debug: int = ...
2020
state: str = ...

0 commit comments

Comments
 (0)