@@ -159,6 +159,20 @@ class Path(PurePath):
159
159
def lchmod (self , mode : int ) -> None : ...
160
160
def lstat (self ) -> stat_result : ...
161
161
def mkdir (self , mode : int = 0o777 , parents : bool = False , exist_ok : bool = False ) -> None : ...
162
+
163
+ if sys .version_info >= (3 , 14 ):
164
+ def copy (self , target : StrPath , * , follow_symlinks : bool = True , preserve_metadata : bool = False ) -> None : ...
165
+ def copytree (
166
+ self ,
167
+ target : StrPath ,
168
+ * ,
169
+ follow_symlinks : bool = True ,
170
+ preserve_metadata : bool = False ,
171
+ dirs_exist_ok : bool = False ,
172
+ ignore : Callable [[Self ], bool ] | None = None ,
173
+ on_error : Callable [[OSError ], object ] | None = None ,
174
+ ) -> None : ...
175
+
162
176
# Adapted from builtins.open
163
177
# Text mode: always returns a TextIOWrapper
164
178
# The Traversable .open in stdlib/importlib/abc.pyi should be kept in sync with this.
@@ -241,6 +255,9 @@ class Path(PurePath):
241
255
242
256
def resolve (self , strict : bool = False ) -> Self : ...
243
257
def rmdir (self ) -> None : ...
258
+ if sys .version_info >= (3 , 14 ):
259
+ def delete (self , ignore_errors : bool = False , on_error : Callable [[OSError ], object ] | None = None ) -> None : ...
260
+
244
261
def symlink_to (self , target : StrOrBytesPath , target_is_directory : bool = False ) -> None : ...
245
262
if sys .version_info >= (3 , 10 ):
246
263
def hardlink_to (self , target : StrOrBytesPath ) -> None : ...
0 commit comments