Update pathlib for 3.14 (#14006)

This commit is contained in:
Max Muoto
2025-05-11 14:44:37 -05:00
committed by GitHub
parent 251570c4f6
commit 268a2e71bd
5 changed files with 59 additions and 33 deletions
+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: ...