Repro: ``` from typing import AnyStr, Union def g(a: AnyStr) -> AnyStr: pass def f(a: Union[str, bytes]): g(a) ``` We get an error on the last line: ``` c.py:5: error: Type argument 1 of "g" has incompatible value "Union[str, bytes]" ``` I would have expected that it would just deduce that y is also a Union[str, bytes]. (**UPDATE:** shortened the repro.)