Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regression in container check logic
This PR fixes the crash reported in python#8230, by replacing the 'pass' with the 'continue', as suggested. However, it does *not* fix the underlying root cause -- for example, changing the lambda input type to `Optional[T]` bypasses the check and triggers the crash again: ``` from typing import Callable, Optional, TypeVar T = TypeVar('T') def foo(f: Callable[[Optional[T]], bool], it: T) -> None: ... foo(reveal_type(lambda x: x in [1, 2] and bool()), 3) ``` I'll update the issue with what I discovered while investigating this, but I don't really have a deep understanding of how our generics/function inference/deferred passes logic works, so didn't feel comfortable volunteering a fix. So, I settled just for fixing the regression.
- Loading branch information