With PEP 563, there's no runtime behaviors.It's strange to accept :def f() -> int | str: ...but nota = int | strThe operator type.__or__() is called only if the user known what they do. it's strictly equivalent toa = Union[int,str]So, I think it's important to add this operator in root type.Le jeu. 29 août 2019 à 14:55, Inada Naoki <songofacandy@gmail.com> a écrit :I don't want to add runtime behaviors for static type hinting.There is PEP 563 instead.Tools like mypy can implement them without touching runtime behavior.--Inada Naoki <songofacandy@gmail.com>