assertpy: improve type for extracting (#12224)

Signed-off-by: BJ Hargrave <bj@hargrave.dev>
Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>
This commit is contained in:
BJ Hargrave
2024-06-26 17:22:32 -04:00
committed by GitHub
parent 326b325879
commit 82199768bf

View File

@@ -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: ...