Update pathlib for 3.14 (#14006)

This commit is contained in:
Max Muoto authored and GitHub committed 2025-05-11 21:44:37 +02:00
1 parent 251570c4f6
commit 268a2e71bd
5 files changed
+59 -33

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
from typing import Protocol, runtime_checkable
@runtime_checkable
class PathInfo(Protocol):
def exists(self, *, follow_symlinks: bool = True) -> bool: ...
def is_dir(self, *, follow_symlinks: bool = True) -> bool: ...
def is_file(self, *, follow_symlinks: bool = True) -> bool: ...
def is_symlink(self) -> bool: ...