[Python-ideas] Complete typing.Union with the rest of set-like functions
levkivskyi at gmail.com
Mon Nov 13 15:01:35 EST 2017
Intersection has already been proposed, see
But it is not yet implemented. You can show your use cases on the typing
maybe they can be covered by Intersection (which will be most probably
added at some point).
On 13 November 2017 at 20:32, Ilya Kulakov <kulakov.ilya at gmail.com> wrote:
> I needed to declare a type that would mean "Any but None" and didn't find
> Current implementation allows to expand set of allowed types, not narrow
> Perhaps typing needs the rest of set operators in addition to Union?
> Best Regards,
> Ilya Kulakov
> Python-ideas mailing list
> Python-ideas at python.org
> Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas