Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change enables the following use-case: ```python def is_not_none(x: Optional[int]) -> TypeGuard[int]: return x is not None list_optional: list[Optional[int]] = [0, None, 1, None, 2] generate_ints: Iterable[int] = filter(is_not_none, list_optional) ``` Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
- Loading branch information