mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-25 20:36:44 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -47,10 +47,10 @@ class ExecError(OSError): ...
|
||||
class ReadError(OSError): ...
|
||||
class RegistryError(Exception): ...
|
||||
|
||||
def copyfileobj(fsrc: SupportsRead[AnyStr], fdst: SupportsWrite[AnyStr], length: int = ...) -> None: ...
|
||||
def copyfile(src: StrOrBytesPath, dst: _StrOrBytesPathT, *, follow_symlinks: bool = ...) -> _StrOrBytesPathT: ...
|
||||
def copymode(src: StrOrBytesPath, dst: StrOrBytesPath, *, follow_symlinks: bool = ...) -> None: ...
|
||||
def copystat(src: StrOrBytesPath, dst: StrOrBytesPath, *, follow_symlinks: bool = ...) -> None: ...
|
||||
def copyfileobj(fsrc: SupportsRead[AnyStr], fdst: SupportsWrite[AnyStr], length: int = 0) -> None: ...
|
||||
def copyfile(src: StrOrBytesPath, dst: _StrOrBytesPathT, *, follow_symlinks: bool = True) -> _StrOrBytesPathT: ...
|
||||
def copymode(src: StrOrBytesPath, dst: StrOrBytesPath, *, follow_symlinks: bool = True) -> None: ...
|
||||
def copystat(src: StrOrBytesPath, dst: StrOrBytesPath, *, follow_symlinks: bool = True) -> None: ...
|
||||
@overload
|
||||
def copy(src: StrPath, dst: StrPath, *, follow_symlinks: bool = ...) -> _PathReturn: ...
|
||||
@overload
|
||||
@@ -65,11 +65,11 @@ if sys.version_info >= (3, 8):
|
||||
def copytree(
|
||||
src: StrPath,
|
||||
dst: StrPath,
|
||||
symlinks: bool = ...,
|
||||
ignore: None | Callable[[str, list[str]], Iterable[str]] | Callable[[StrPath, list[str]], Iterable[str]] = ...,
|
||||
symlinks: bool = False,
|
||||
ignore: None | Callable[[str, list[str]], Iterable[str]] | Callable[[StrPath, list[str]], Iterable[str]] = None,
|
||||
copy_function: Callable[[str, str], object] = ...,
|
||||
ignore_dangling_symlinks: bool = ...,
|
||||
dirs_exist_ok: bool = ...,
|
||||
ignore_dangling_symlinks: bool = False,
|
||||
dirs_exist_ok: bool = False,
|
||||
) -> _PathReturn: ...
|
||||
|
||||
else:
|
||||
@@ -144,13 +144,13 @@ else:
|
||||
def make_archive(
|
||||
base_name: str,
|
||||
format: str,
|
||||
root_dir: StrPath | None = ...,
|
||||
base_dir: StrPath | None = ...,
|
||||
root_dir: StrPath | None = None,
|
||||
base_dir: StrPath | None = None,
|
||||
verbose: bool = ...,
|
||||
dry_run: bool = ...,
|
||||
owner: str | None = ...,
|
||||
group: str | None = ...,
|
||||
logger: Any | None = ...,
|
||||
owner: str | None = None,
|
||||
group: str | None = None,
|
||||
logger: Any | None = None,
|
||||
) -> str: ...
|
||||
def get_archive_formats() -> list[tuple[str, str]]: ...
|
||||
@overload
|
||||
@@ -162,7 +162,7 @@ def register_archive_format(
|
||||
name: str, function: Callable[[str, str], object], extra_args: None = ..., description: str = ...
|
||||
) -> None: ...
|
||||
def unregister_archive_format(name: str) -> None: ...
|
||||
def unpack_archive(filename: StrPath, extract_dir: StrPath | None = ..., format: str | None = ...) -> None: ...
|
||||
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