[stdlib] Mark constants as Final (#14577)

This commit is contained in:
Semyon Moroz
2025-08-15 11:19:03 +00:00
committed by GitHub
parent 554701e9b6
commit 85a787bba3
62 changed files with 1601 additions and 1583 deletions
+75 -75
View File
@@ -2,89 +2,89 @@ import socket
from collections.abc import Callable, MutableSequence, Sequence
from re import Match, Pattern
from types import TracebackType
from typing import Any
from typing import Any, Final
from typing_extensions import Self
__all__ = ["Telnet"]
DEBUGLEVEL: int
TELNET_PORT: int
DEBUGLEVEL: Final = 0
TELNET_PORT: Final = 23
IAC: bytes
DONT: bytes
DO: bytes
WONT: bytes
WILL: bytes
theNULL: bytes
IAC: Final = b"\xff"
DONT: Final = b"\xfe"
DO: Final = b"\xfd"
WONT: Final = b"\xfc"
WILL: Final = b"\xfb"
theNULL: Final = b"\x00"
SE: bytes
NOP: bytes
DM: bytes
BRK: bytes
IP: bytes
AO: bytes
AYT: bytes
EC: bytes
EL: bytes
GA: bytes
SB: bytes
SE: Final = b"\xf0"
NOP: Final = b"\xf1"
DM: Final = b"\xf2"
BRK: Final = b"\xf3"
IP: Final = b"\xf4"
AO: Final = b"\xf5"
AYT: Final = b"\xf6"
EC: Final = b"\xf7"
EL: Final = b"\xf8"
GA: Final = b"\xf9"
SB: Final = b"\xfa"
BINARY: bytes
ECHO: bytes
RCP: bytes
SGA: bytes
NAMS: bytes
STATUS: bytes
TM: bytes
RCTE: bytes
NAOL: bytes
NAOP: bytes
NAOCRD: bytes
NAOHTS: bytes
NAOHTD: bytes
NAOFFD: bytes
NAOVTS: bytes
NAOVTD: bytes
NAOLFD: bytes
XASCII: bytes
LOGOUT: bytes
BM: bytes
DET: bytes
SUPDUP: bytes
SUPDUPOUTPUT: bytes
SNDLOC: bytes
TTYPE: bytes
EOR: bytes
TUID: bytes
OUTMRK: bytes
TTYLOC: bytes
VT3270REGIME: bytes
X3PAD: bytes
NAWS: bytes
TSPEED: bytes
LFLOW: bytes
LINEMODE: bytes
XDISPLOC: bytes
OLD_ENVIRON: bytes
AUTHENTICATION: bytes
ENCRYPT: bytes
NEW_ENVIRON: bytes
BINARY: Final = b"\x00"
ECHO: Final = b"\x01"
RCP: Final = b"\x02"
SGA: Final = b"\x03"
NAMS: Final = b"\x04"
STATUS: Final = b"\x05"
TM: Final = b"\x06"
RCTE: Final = b"\x07"
NAOL: Final = b"\x08"
NAOP: Final = b"\t"
NAOCRD: Final = b"\n"
NAOHTS: Final = b"\x0b"
NAOHTD: Final = b"\x0c"
NAOFFD: Final = b"\r"
NAOVTS: Final = b"\x0e"
NAOVTD: Final = b"\x0f"
NAOLFD: Final = b"\x10"
XASCII: Final = b"\x11"
LOGOUT: Final = b"\x12"
BM: Final = b"\x13"
DET: Final = b"\x14"
SUPDUP: Final = b"\x15"
SUPDUPOUTPUT: Final = b"\x16"
SNDLOC: Final = b"\x17"
TTYPE: Final = b"\x18"
EOR: Final = b"\x19"
TUID: Final = b"\x1a"
OUTMRK: Final = b"\x1b"
TTYLOC: Final = b"\x1c"
VT3270REGIME: Final = b"\x1d"
X3PAD: Final = b"\x1e"
NAWS: Final = b"\x1f"
TSPEED: Final = b" "
LFLOW: Final = b"!"
LINEMODE: Final = b'"'
XDISPLOC: Final = b"#"
OLD_ENVIRON: Final = b"$"
AUTHENTICATION: Final = b"%"
ENCRYPT: Final = b"&"
NEW_ENVIRON: Final = b"'"
TN3270E: bytes
XAUTH: bytes
CHARSET: bytes
RSP: bytes
COM_PORT_OPTION: bytes
SUPPRESS_LOCAL_ECHO: bytes
TLS: bytes
KERMIT: bytes
SEND_URL: bytes
FORWARD_X: bytes
PRAGMA_LOGON: bytes
SSPI_LOGON: bytes
PRAGMA_HEARTBEAT: bytes
EXOPL: bytes
NOOPT: bytes
TN3270E: Final = b"("
XAUTH: Final = b")"
CHARSET: Final = b"*"
RSP: Final = b"+"
COM_PORT_OPTION: Final = b","
SUPPRESS_LOCAL_ECHO: Final = b"-"
TLS: Final = b"."
KERMIT: Final = b"/"
SEND_URL: Final = b"0"
FORWARD_X: Final = b"1"
PRAGMA_LOGON: Final = b"\x8a"
SSPI_LOGON: Final = b"\x8b"
PRAGMA_HEARTBEAT: Final = b"\x8c"
EXOPL: Final = b"\xff"
NOOPT: Final = b"\x00"
class Telnet:
host: str | None # undocumented