[Python-ideas] Complete typing.Union with the rest of set-like functions

Ilya Kulakov kulakov.ilya at gmail.com
Mon Nov 13 14:32:45 EST 2017


I needed to declare a type that would mean "Any but None" and didn't find how.

Current implementation allows to expand set of allowed types, not narrow it.
Perhaps typing needs the rest of set operators in addition to Union?


Best Regards,
Ilya Kulakov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20171113/cb54d1b0/attachment.html>


More information about the Python-ideas mailing list