mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
shutil.unpack_archive: update for py312 (#10215)
Add the new "filter" parameter
This commit is contained in:
@@ -167,7 +167,15 @@ def register_archive_format(
|
||||
name: str, function: Callable[[str, str], object], extra_args: None = None, description: str = ""
|
||||
) -> None: ...
|
||||
def unregister_archive_format(name: str) -> None: ...
|
||||
def unpack_archive(filename: StrPath, extract_dir: StrPath | None = None, format: str | None = None) -> None: ...
|
||||
|
||||
if sys.version_info >= (3, 12):
|
||||
def unpack_archive(
|
||||
filename: StrPath, extract_dir: StrPath | None = None, format: str | None = None, *, filter: str | None = None
|
||||
) -> None: ...
|
||||
|
||||
else:
|
||||
def unpack_archive(filename: StrPath, extract_dir: StrPath | None = None, format: str | None = None) -> None: ...
|
||||
|
||||
@overload
|
||||
def register_unpack_format(
|
||||
name: str,
|
||||
|
||||
Reference in New Issue
Block a user