Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions stdlib/@tests/stubtest_allowlists/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,12 @@ _?socket.SOL_ROSE
# not present on GitHub Actions runners.
termios.TIOCTTYGSTRUCT

# Only defined when Python was built against glibc 2.42 or newer
Comment thread
anistark marked this conversation as resolved.
(termios.B7200)?
(termios.B14400)?
(termios.B28800)?
(termios.B76800)?
(termios.IBSHIFT)?

tkinter.Tk.createfilehandler # Methods that come from __getattr__() at runtime
tkinter.Tk.deletefilehandler # Methods that come from __getattr__() at runtime
9 changes: 6 additions & 3 deletions stdlib/termios.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,14 @@ if sys.platform != "win32":
EXTPROC: Final[int]
IUTF8: Final[int]

if sys.platform == "darwin" and sys.version_info >= (3, 13):
ALTWERASE: Final[int]
# On Linux, only available when Python was built against glibc 2.42 or newer.
B14400: Final[int]
B28800: Final[int]
B7200: Final[int]
B76800: Final[int]

if sys.platform == "darwin" and sys.version_info >= (3, 13):
ALTWERASE: Final[int]
CCAR_OFLOW: Final[int]
CCTS_OFLOW: Final[int]
CDSR_OFLOW: Final[int]
Expand Down Expand Up @@ -274,6 +276,8 @@ if sys.platform != "win32":
B460800: Final[int]
B500000: Final[int]
B921600: Final[int]
# On Linux, only available when Python was built against glibc 2.42 or newer.
IBSHIFT: Final[int]

if sys.platform != "linux":
TCSASOFT: Final[int]
Expand All @@ -286,7 +290,6 @@ if sys.platform != "win32":
CNUL: Final[int]
COMMON: Final[int]
CSWTCH: Final[int]
IBSHIFT: Final[int]
INIT_C_CC: Final[int]
NSWTCH: Final[int]

Expand Down
Loading