diff --git a/stdlib/2/shutil.pyi b/stdlib/2/shutil.pyi index a826a097b..c39f25780 100644 --- a/stdlib/2/shutil.pyi +++ b/stdlib/2/shutil.pyi @@ -2,7 +2,7 @@ # # NOTE: Based on a dynamically typed stub automatically generated by stubgen. -from typing import List, Iterable, Callable, IO, AnyStr, Any, Tuple, Sequence +from typing import List, Iterable, Callable, IO, AnyStr, Any, Optional, Tuple, Sequence class Error(EnvironmentError): ... class SpecialFileError(EnvironmentError): ... @@ -16,7 +16,7 @@ def copy(src: unicode, dst: unicode) -> None: ... def copy2(src: unicode, dst: unicode) -> None: ... def ignore_patterns(*patterns: AnyStr) -> Callable[[AnyStr, List[AnyStr]], Iterable[AnyStr]]: ... def copytree(src: AnyStr, dst: AnyStr, symlinks: bool = ..., - ignore: Callable[[AnyStr, List[AnyStr]], Iterable[AnyStr]] = ...) -> None: ... + ignore: Optional[Callable[[AnyStr, List[AnyStr]], Iterable[AnyStr]]] = ...) -> None: ... def rmtree(path: AnyStr, ignore_errors: bool = ..., onerror: Callable[[Any, AnyStr, Any], None] = ...) -> None: ... def move(src: unicode, dst: unicode) -> None: ... diff --git a/stdlib/3/shutil.pyi b/stdlib/3/shutil.pyi index c0745e368..d266bbee5 100644 --- a/stdlib/3/shutil.pyi +++ b/stdlib/3/shutil.pyi @@ -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 = ...,