Consistently use '= ...' for optional parameters.

This commit is contained in:
Matthias Kramm
2015-11-09 13:55:00 -08:00
parent 375bf063b1
commit 94c9ce8fd0
278 changed files with 2085 additions and 2085 deletions

View File

@@ -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]]: ...