DefaultDict -> defaultdict, typing.ContextManager -> contextlib.AbstractContextManager (#6351)

This commit is contained in:
Alex Waygood
2021-11-21 15:07:35 +00:00
committed by GitHub
parent 5b668419ae
commit dc5f6410a8
3 changed files with 8 additions and 7 deletions

View File

@@ -1,7 +1,8 @@
import asynchat
import asyncore
import socket
from typing import Any, DefaultDict, Tuple, Type
from collections import defaultdict
from typing import Any, Tuple, Type
_Address = Tuple[str, int] # (host, port)
@@ -9,7 +10,7 @@ class SMTPChannel(asynchat.async_chat):
COMMAND: int
DATA: int
command_size_limits: DefaultDict[str, int]
command_size_limits: defaultdict[str, int]
smtp_server: SMTPServer
conn: socket.socket
addr: Any