-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Make filter() use TypeGuard #5661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Does it not require just the one extra overload? @overload
def __init__(self, __function: Callable[[_S], TypeGuard[_T]], __iterable: Iterable[_S]) -> None: ... |
I think we can try to add this feature based on this existing test. |
Fixed by #5661 |
This links to the current issue, not the PR implementing this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will probably require a lot of overloads.
The text was updated successfully, but these errors were encountered: