Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 0 additions & 2 deletions stdlib/@tests/stubtest_allowlists/win32-py314.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# ====================================================================

compression.zlib.ZLIBNG_VERSION
pathlib.Path.group
pathlib.Path.owner
zlib.ZLIBNG_VERSION


Expand Down
6 changes: 5 additions & 1 deletion stdlib/pathlib/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,12 @@ class Path(PurePath):
self, mode: str, buffering: int = -1, encoding: str | None = None, errors: str | None = None, newline: str | None = None
) -> IO[Any]: ...

# These methods do "exist" on Windows on <3.13, but they always raise NotImplementedError.
# These methods do "exist" on Windows exclude 3.13, but they always raise NotImplementedError.
if sys.platform == "win32":
if sys.version_info >= (3, 14):
# raises UnsupportedOperation:
def owner(self: Never, *, follow_symlinks: bool = True) -> str: ... # type: ignore[misc]
def group(self: Never, *, follow_symlinks: bool = True) -> str: ... # type: ignore[misc]
if sys.version_info < (3, 13):
def owner(self: Never) -> str: ... # type: ignore[misc]
def group(self: Never) -> str: ... # type: ignore[misc]
Expand Down
Loading