From 82199768bf2e651804cb718f4b570af6d41333d9 Mon Sep 17 00:00:00 2001 From: BJ Hargrave Date: Wed, 26 Jun 2024 17:22:32 -0400 Subject: [PATCH] assertpy: improve type for extracting (#12224) Signed-off-by: BJ Hargrave Co-authored-by: hauntsaninja --- stubs/assertpy/assertpy/extracting.pyi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stubs/assertpy/assertpy/extracting.pyi b/stubs/assertpy/assertpy/extracting.pyi index c8de113d3..da161a870 100644 --- a/stubs/assertpy/assertpy/extracting.pyi +++ b/stubs/assertpy/assertpy/extracting.pyi @@ -1,7 +1,13 @@ +from collections.abc import Callable, Iterable as _Iterable, Mapping from typing import Any from typing_extensions import Self __tracebackhide__: bool class ExtractingMixin: - def extracting(self, *names: Any, **kwargs: dict[str, Any]) -> Self: ... + def extracting( + self, + *names: str, + filter: str | Mapping[str, Any] | Callable[[Any], bool], + sort: str | _Iterable[str] | Callable[[Any], Any], + ) -> Self: ...