mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Consistently use '= ...' for optional parameters.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
from typing import List, Iterable, Callable, Any, Tuple, Sequence, IO, AnyStr
|
||||
|
||||
def copyfileobj(fsrc: IO[AnyStr], fdst: IO[AnyStr],
|
||||
length: int = None) -> None: ...
|
||||
length: int = ...) -> None: ...
|
||||
|
||||
def copyfile(src: str, dst: str) -> None: ...
|
||||
def copymode(src: str, dst: str) -> None: ...
|
||||
@@ -18,29 +18,29 @@ def copy(src: str, dst: str) -> None: ...
|
||||
def copy2(src: str, dst: str) -> None: ...
|
||||
def ignore_patterns(*patterns: str) -> Callable[[str, List[str]],
|
||||
Iterable[str]]: ...
|
||||
def copytree(src: str, dst: str, symlinks: bool = False,
|
||||
ignore: Callable[[str, List[str]], Iterable[str]] = None,
|
||||
copy_function: Callable[[str, str], None] = copy2,
|
||||
ignore_dangling_symlinks: bool = False) -> None: ...
|
||||
def rmtree(path: str, ignore_errors: bool = False,
|
||||
onerror: Callable[[Any, str, Any], None] = None) -> None: ...
|
||||
def copytree(src: str, dst: str, symlinks: bool = ...,
|
||||
ignore: Callable[[str, List[str]], Iterable[str]] = ...,
|
||||
copy_function: Callable[[str, str], None] = ...,
|
||||
ignore_dangling_symlinks: bool = ...) -> None: ...
|
||||
def rmtree(path: str, ignore_errors: bool = ...,
|
||||
onerror: Callable[[Any, str, Any], None] = ...) -> None: ...
|
||||
def move(src: str, dst: str) -> None: ...
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
def make_archive(base_name: str, format: str, root_dir: str = None,
|
||||
base_dir: str = None, verbose: bool = False,
|
||||
dry_run: bool = False, owner: str = None, group: str = None,
|
||||
logger: Any = None) -> str: ...
|
||||
def make_archive(base_name: str, format: str, root_dir: str = ...,
|
||||
base_dir: str = ..., verbose: bool = ...,
|
||||
dry_run: bool = ..., owner: str = ..., group: str = ...,
|
||||
logger: Any = ...) -> str: ...
|
||||
def get_archive_formats() -> List[Tuple[str, str]]: ...
|
||||
def register_archive_format(name: str, function: Any,
|
||||
extra_args: Sequence[Tuple[str, Any]] = None,
|
||||
description: str = None) -> None: ...
|
||||
extra_args: Sequence[Tuple[str, Any]] = ...,
|
||||
description: str = ...) -> None: ...
|
||||
def unregister_archive_format(name: str) -> None: ...
|
||||
def unpack_archive(filename: str, extract_dir: str = None,
|
||||
format: str = None) -> None: ...
|
||||
def unpack_archive(filename: str, extract_dir: str = ...,
|
||||
format: str = ...) -> None: ...
|
||||
def register_unpack_format(name: str, extensions: List[str], function: Any,
|
||||
extra_args: Sequence[Tuple[str, Any]] = None,
|
||||
description: str = None) -> None: ...
|
||||
extra_args: Sequence[Tuple[str, Any]] = ...,
|
||||
description: str = ...) -> None: ...
|
||||
def unregister_unpack_format(name: str) -> None: ...
|
||||
def get_unpack_formats() -> List[Tuple[str, List[str], str]]: ...
|
||||
|
||||
Reference in New Issue
Block a user