Closed
Description
#7955 caused this example to start generating type errors:
from typing import List, Union
def g(a: List[str], b: bool) -> bool:
x = a and b
y: bool
return x or y # Incompatible return value type (got "Union[List[str], bool]", expected "bool")
Previously, this generated no errors. It's unclear whether this fixed a false negative or whether this is a regression.
@Michael0x2a Do you have an idea of what might be going on?