mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +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]
|
||||
|
||||
|
||||
@@ -73,7 +73,6 @@ platform.uname_result.__new__
|
||||
platform.uname_result._fields
|
||||
platform.uname_result.processor
|
||||
queue.SimpleQueue.__init__
|
||||
shutil.rmtree
|
||||
socketserver.UDPServer.allow_reuse_port
|
||||
string.Template.get_identifiers
|
||||
string.Template.is_valid
|
||||
|
||||
Reference in New Issue
Block a user