Hello everybody,_______________________________________________After the previous discussions, a new simplified version of PEP-0604 was published.I propose to add a similar syntax of Scala 3 in Python, to accept an or operator.
The isinstance() and issubclass() were extended to accept this new syntax:
isinstance(int, int | str)It's not really explored.To accept this evolution, the object Union (and dependencies) now be available as a builtin.Your remarks are welcome.Philippe
Typing-sig mailing list -- typing-sig@python.org
To unsubscribe send an email to typing-sig-leave@python.org
https://mail.python.org/mailman3/lists/typing-sig.python.org/