diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index cf5799238b76..3769aecf30f3 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -1051,6 +1051,8 @@ class filter(Iterator[_T], Generic[_T]): @overload def __init__(self, __function: None, __iterable: Iterable[_T | None]) -> None: ... @overload + def __init__(self, __function: Callable[[_S], TypeGuard[_T]], __iterable: Iterable[_S]) -> None: ... + @overload def __init__(self, __function: Callable[[_T], Any], __iterable: Iterable[_T]) -> None: ... def __iter__(self) -> Iterator[_T]: ... def __next__(self) -> _T: ...