From cac9368326d3544c7eda7d1853a1c04517900cd8 Mon Sep 17 00:00:00 2001 From: Itai Steinherz Date: Sun, 6 Feb 2022 22:05:13 +0200 Subject: [PATCH 1/2] Improve `filecmp` typing --- stdlib/filecmp.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/filecmp.pyi b/stdlib/filecmp.pyi index 994809099c6b..9870d9eb4079 100644 --- a/stdlib/filecmp.pyi +++ b/stdlib/filecmp.pyi @@ -14,7 +14,8 @@ BUFSIZE: Literal[8192] def cmp(f1: StrOrBytesPath, f2: StrOrBytesPath, shallow: int | bool = ...) -> bool: ... def cmpfiles( - a: AnyStr | PathLike[AnyStr], b: AnyStr | PathLike[AnyStr], common: Iterable[AnyStr], shallow: int | bool = ... + a: AnyStr | PathLike[AnyStr], b: AnyStr | PathLike[AnyStr], common: Iterable[AnyStr | PathLike[AnyStr]], + shallow: int | bool = ... ) -> tuple[list[AnyStr], list[AnyStr], list[AnyStr]]: ... class dircmp(Generic[AnyStr]): From 38baa4e0bb85c71ea1161646b7b1fc9dc225fd70 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 6 Feb 2022 20:10:03 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks --- stdlib/filecmp.pyi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stdlib/filecmp.pyi b/stdlib/filecmp.pyi index 9870d9eb4079..7c606af40791 100644 --- a/stdlib/filecmp.pyi +++ b/stdlib/filecmp.pyi @@ -14,8 +14,10 @@ BUFSIZE: Literal[8192] def cmp(f1: StrOrBytesPath, f2: StrOrBytesPath, shallow: int | bool = ...) -> bool: ... def cmpfiles( - a: AnyStr | PathLike[AnyStr], b: AnyStr | PathLike[AnyStr], common: Iterable[AnyStr | PathLike[AnyStr]], - shallow: int | bool = ... + a: AnyStr | PathLike[AnyStr], + b: AnyStr | PathLike[AnyStr], + common: Iterable[AnyStr | PathLike[AnyStr]], + shallow: int | bool = ..., ) -> tuple[list[AnyStr], list[AnyStr], list[AnyStr]]: ... class dircmp(Generic[AnyStr]):