Use lowercase type everywhere (#6853)

This commit is contained in:
Alex Waygood
2022-01-08 15:09:29 +00:00
committed by GitHub
parent f8501d33c7
commit a40d79a4e6
172 changed files with 728 additions and 761 deletions

View File

@@ -5,7 +5,7 @@ from _typeshed import Self
from socket import socket as _socket
from ssl import SSLContext, SSLSocket
from types import TracebackType
from typing import IO, Any, Callable, Pattern, Type, Union
from typing import IO, Any, Callable, Pattern, Union
from typing_extensions import Literal
# TODO: Commands should use their actual return types, not this type alias.
@@ -17,9 +17,9 @@ _AnyResponseData = Union[list[None], list[Union[bytes, tuple[bytes, bytes]]]]
_list = list # conflicts with a method named "list"
class IMAP4:
error: Type[Exception]
abort: Type[Exception]
readonly: Type[Exception]
error: type[Exception]
abort: type[Exception]
readonly: type[Exception]
mustquote: Pattern[str]
debug: int
state: str
@@ -63,7 +63,7 @@ class IMAP4:
def deleteacl(self, mailbox: str, who: str) -> _CommandResults: ...
def enable(self, capability: str) -> _CommandResults: ...
def __enter__(self: Self) -> Self: ...
def __exit__(self, t: Type[BaseException] | None, v: BaseException | None, tb: TracebackType | None) -> None: ...
def __exit__(self, t: type[BaseException] | None, v: BaseException | None, tb: TracebackType | None) -> None: ...
def expunge(self) -> _CommandResults: ...
def fetch(self, message_set: str, message_parts: str) -> tuple[str, _AnyResponseData]: ...
def getacl(self, mailbox: str) -> _CommandResults: ...