From 1f8c439cebc5e2722ff3684d5ec7216468dd9d56 Mon Sep 17 00:00:00 2001 From: BJ Hargrave Date: Tue, 2 Jul 2024 15:20:50 -0400 Subject: [PATCH] Update assertpy/extracting.pyi so that kwargs are not required (#12229) The recent change to better type the `sort` and `filter` kwargs had the side effect of making them required. So we fix to supply a default argument. Signed-off-by: BJ Hargrave --- stubs/assertpy/assertpy/extracting.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/assertpy/assertpy/extracting.pyi b/stubs/assertpy/assertpy/extracting.pyi index da161a870..f2ae1f16e 100644 --- a/stubs/assertpy/assertpy/extracting.pyi +++ b/stubs/assertpy/assertpy/extracting.pyi @@ -8,6 +8,6 @@ class ExtractingMixin: def extracting( self, *names: str, - filter: str | Mapping[str, Any] | Callable[[Any], bool], - sort: str | _Iterable[str] | Callable[[Any], Any], + filter: str | Mapping[str, Any] | Callable[[Any], bool] = ..., + sort: str | _Iterable[str] | Callable[[Any], Any] = ..., ) -> Self: ...