pinterior

Results comments of pinterior

`assert_never((yield from non_terminating()))` can be used for workaround.

I could repro the problem as following: ### Files - typ.py ```py Nested = list["StrOrNested"] StrOrNested = str | Nested Alias = Nested ``` - a.py ```py # pyright: strict...

possibly a duplicate of https://github.com/microsoft/pyright/issues/7545

here's another one #13108 also checking parameter type of `until` and `until_not`

sure, but unexpected number of type parameters is still bit mysterious.

I personally think 2 is the best one. (and it will be helpful if message like "annotate Generator type explicitly!" is shown on type errors around `yield` expression)

the problem affects on `match` exhaustiveness. for example: ```python3 from typing import Any, Union, Literal # stub for legacy code not annotated and inferred as `Union[str, Literal[3], Any]` # but...

I thought semantic of `Union` assignment is flatMap each element by assign to lhs type semantic recursively and construct new `Union` type, so `Any` in rhs `Union` will be erased....