Skip to content

Commit e16c23d

Browse files
authored
[_winapi] Add COPY_FILE_DIRECTORY (#14515)
1 parent 731090c commit e16c23d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

stdlib/@tests/stubtest_allowlists/win32-py314.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# TODO: New errors in Python 3.14 that need to be fixed or moved below
33
# ====================================================================
44

5-
_winapi.COPY_FILE_DIRECTORY
65
compression.zlib.ZLIBNG_VERSION
76
pathlib.Path.group
87
pathlib.Path.owner

stdlib/_winapi.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ if sys.platform == "win32":
172172
ERROR_ACCESS_DENIED: Final = 5
173173
ERROR_PRIVILEGE_NOT_HELD: Final = 1314
174174

175+
if sys.version_info >= (3, 14):
176+
COPY_FILE_DIRECTORY: Final = 0x00000080
177+
175178
def CloseHandle(handle: int, /) -> None: ...
176179
@overload
177180
def ConnectNamedPipe(handle: int, overlapped: Literal[True]) -> Overlapped: ...

0 commit comments

Comments
 (0)