Ken Jin <kenjin4...@gmail.com> added the comment:

@Guido and @Ivan,

Should Literals de-duplicate values in its __args__ similar to Union? PEP 586 
states that:
> Literal[v1, v2, v3] is equivalent to Union[Literal[v1], Literal[v2], 
> Literal[v3]]

Naturally, a Union de-duplicates values, so I was wondering if Literal should 
follow.

----------
nosy: +kj

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42345>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to