mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-02 22:18:28 +08:00
[stdlib] Mark constants as Final (#14577)
This commit is contained in:
+7
-7
@@ -7,7 +7,7 @@ from re import Pattern
|
||||
from socket import socket
|
||||
from ssl import SSLContext
|
||||
from types import TracebackType
|
||||
from typing import Any, Protocol, overload, type_check_only
|
||||
from typing import Any, Final, Protocol, overload, type_check_only
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
__all__ = [
|
||||
@@ -30,12 +30,12 @@ __all__ = [
|
||||
_Reply: TypeAlias = tuple[int, bytes]
|
||||
_SendErrs: TypeAlias = dict[str, _Reply]
|
||||
|
||||
SMTP_PORT: int
|
||||
SMTP_SSL_PORT: int
|
||||
CRLF: str
|
||||
bCRLF: bytes
|
||||
SMTP_PORT: Final = 25
|
||||
SMTP_SSL_PORT: Final = 465
|
||||
CRLF: Final[str]
|
||||
bCRLF: Final[bytes]
|
||||
|
||||
OLDSTYLE_AUTH: Pattern[str]
|
||||
OLDSTYLE_AUTH: Final[Pattern[str]]
|
||||
|
||||
class SMTPException(OSError): ...
|
||||
class SMTPNotSupportedError(SMTPException): ...
|
||||
@@ -182,7 +182,7 @@ class SMTP_SSL(SMTP):
|
||||
context: SSLContext | None = None,
|
||||
) -> None: ...
|
||||
|
||||
LMTP_PORT: int
|
||||
LMTP_PORT: Final = 2003
|
||||
|
||||
class LMTP(SMTP):
|
||||
def __init__(
|
||||
|
||||
Reference in New Issue
Block a user