imaplib, nntplib, plistlib, poplib: use lower-case list and dict (#5890)

This commit is contained in:
Akuli
2021-08-08 19:46:23 +03:00
committed by GitHub
parent ce11072dbe
commit 24780a3e03
4 changed files with 23 additions and 21 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, Dict, List, Pattern, Tuple, Type, Union
from typing import IO, Any, Callable, List, Pattern, Tuple, Type, Union
from typing_extensions import Literal
# TODO: Commands should use their actual return types, not this type alias.
@@ -22,8 +22,8 @@ class IMAP4:
debug: int = ...
state: str = ...
literal: str | None = ...
tagged_commands: Dict[bytes, List[bytes] | None]
untagged_responses: Dict[str, List[bytes | Tuple[bytes, bytes]]]
tagged_commands: dict[bytes, List[bytes] | None]
untagged_responses: dict[str, List[bytes | Tuple[bytes, bytes]]]
continuation_response: str = ...
is_readonly: bool = ...
tagnum: int = ...