mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Make shutil.copytree stub's ignore parameter optional. (#740)
* Make `shutil.copytree` stub's `ignore` parameter optional. * python2.7 shutil.copytree `ignore` annotated as optional.
This commit is contained in:
committed by
Jukka Lehtosalo
parent
e7db9cda4d
commit
af5b5c83fd
@@ -20,7 +20,7 @@ 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 = ...,
|
||||
ignore: Callable[[str, List[str]], Iterable[str]] = ...,
|
||||
ignore: Optional[Callable[[str, List[str]], Iterable[str]]] = ...,
|
||||
copy_function: Callable[[str, str], None] = ...,
|
||||
ignore_dangling_symlinks: bool = ...) -> None: ...
|
||||
def rmtree(path: str, ignore_errors: bool = ...,
|
||||
|
||||
Reference in New Issue
Block a user