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

This commit is contained in:
Akuli authored and GitHub committed 2021-08-08 18:46:23 +02:00
1 parent ce11072dbe
commit 24780a3e03
4 files changed
+23 -21

No files matched your search

+3 -3
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 = ...