mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Improve poplib with Literal values (#7180)
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
import socket
|
||||
import ssl
|
||||
from typing import Any, BinaryIO, Pattern, overload
|
||||
from typing_extensions import Literal
|
||||
|
||||
_LongResp = tuple[bytes, list[bytes], int]
|
||||
|
||||
class error_proto(Exception): ...
|
||||
|
||||
POP3_PORT: int
|
||||
POP3_SSL_PORT: int
|
||||
CR: bytes
|
||||
LF: bytes
|
||||
CRLF: bytes
|
||||
POP3_PORT: Literal[110]
|
||||
POP3_SSL_PORT: Literal[995]
|
||||
CR: Literal[b"\r"]
|
||||
LF: Literal[b"\n"]
|
||||
CRLF: Literal[b"\r\n"]
|
||||
HAVE_SSL: bool
|
||||
|
||||
_list = list # conflicts with a method named "list"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user