mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
shutil: update rmtree for py311 (#7925)
This commit is contained in:
@@ -82,7 +82,17 @@ else:
|
||||
ignore_dangling_symlinks: bool = ...,
|
||||
) -> _PathReturn: ...
|
||||
|
||||
def rmtree(path: StrOrBytesPath, ignore_errors: bool = ..., onerror: Callable[[Any, Any, Any], Any] | None = ...) -> None: ...
|
||||
if sys.version_info >= (3, 11):
|
||||
def rmtree(
|
||||
path: StrOrBytesPath,
|
||||
ignore_errors: bool = ...,
|
||||
onerror: Callable[[Any, Any, Any], Any] | None = ...,
|
||||
*,
|
||||
dir_fd: int | None = ...,
|
||||
) -> None: ...
|
||||
|
||||
else:
|
||||
def rmtree(path: StrOrBytesPath, ignore_errors: bool = ..., onerror: Callable[[Any, Any, Any], Any] | None = ...) -> None: ...
|
||||
|
||||
_CopyFn: TypeAlias = Callable[[str, str], None] | Callable[[StrPath, StrPath], None]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user