diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 324f5a5a0993..e6ed5dd10697 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -1054,6 +1054,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: ...