[issue26075] typing.Union unifies types too broadly

2016-09-27 Thread Guido van Rossum
Guido van Rossum added the comment: Fixed by 09cc43df4509. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue26075] typing.Union unifies types too broadly

2016-06-30 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue26075] typing.Union unifies types too broadly

2016-01-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> test needed ___ Python tracker ___

[issue26075] typing.Union unifies types too broadly

2016-01-10 Thread Alex Grönholm
New submission from Alex Grönholm: >>> from typing import Union, Iterable >>> Union[str, Iterable[int]] typing.Iterable[int] The union loses the "str" parameter because issubclass(str, collections.abc.Iterable) returns True and the check completely disregards generics. Guido mentioned that