8000 Update `fcntl` to python 3.12 (#10774) · python/typeshed@df2efe6 · GitHub
[go: up one dir, main page]

Skip to content

Commit df2efe6

Browse files
authored
Update fcntl to python 3.12 (#10774)
1 parent 9e79a10 commit df2efe6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

stdlib/fcntl.pyi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ if sys.platform != "win32":
101101
I_STR: int
102102
I_SWROPT: int
103103
I_UNLINK: int
104+
105+
if sys.version_info >= (3, 12) and sys.platform == "linux":
106+
FICLONE: int
107+
FICLONERANGE: int
108+
104109
@overload
105110
def fcntl(__fd: FileDescriptorLike, __cmd: int, __arg: int = 0) -> int: ...
106111
@overload

tests/stubtest_allowlists/linux-py312.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ _posixsubprocess.fork_exec
44
(os|posix).setns
55
(os|posix).setresgid
66
(os|posix).setresuid
7-
fcntl.FICLONE
8-
fcntl.FICLONERANGE
97
mmap.MAP_STACK
108
resource.prlimit
119
signal.sigtimedwait

0 commit comments

Comments
 (0)
0