Skip to content
Open
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
1 change: 1 addition & 0 deletions stdlib/@tests/stubtest_allowlists/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ curses.COLOR_PAIRS # Initialized after start_color
curses.COLS # Initialized only after initscr call
curses.LINES # Initialized only after initscr call
fcntl.I_[A-Z0-9_]+ # Platform differences that cannot be captured by the type system
(fcntl.F_DUPFD_QUERY)? # Depends on the glibc version Python was built against
multiprocessing.popen_spawn_win32 # exists on Linux but fails to import
select.poll # Actually a function; we have a class so it can be used as a type

Expand Down
3 changes: 3 additions & 0 deletions stdlib/fcntl.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ if sys.platform != "win32":
RWH_WRITE_LIFE_LONG: Final = 4
RWH_WRITE_LIFE_EXTREME: Final = 5

if sys.version_info >= (3, 14) and sys.platform == "linux":
F_DUPFD_QUERY: Final[int]

if sys.version_info >= (3, 11) and sys.platform == "darwin":
F_OFD_SETLK: Final = 90
F_OFD_SETLKW: Final = 91
Expand Down
Loading