mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Use TypeAlias for type aliases where possible, part II (#7667)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import socket
|
||||
import ssl
|
||||
from builtins import list as _list # conflicts with a method named "list"
|
||||
from typing import Any, BinaryIO, NoReturn, Pattern, overload
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
|
||||
@@ -16,8 +17,6 @@ LF: Literal[b"\n"]
|
||||
CRLF: Literal[b"\r\n"]
|
||||
HAVE_SSL: bool
|
||||
|
||||
_list = list # conflicts with a method named "list"
|
||||
|
||||
class POP3:
|
||||
encoding: str
|
||||
host: str
|
||||
|
||||
Reference in New Issue
Block a user