
May 22, 2019
2:46 p.m.
On Wed, 22 May 2019 at 10:19, Bernat Gabor <gaborjbernat@gmail.com> wrote:
Looks all fine.
Just double checking that the expectations is that for Enums you need explicit enum reference, however for IntEnum literal both the int number or the enum form is accepted, not (following the rules at https://www.python.org/dev/peps/pep-0586/#id20) ?
[...]
Another thought; for a TypedDict does this mean we (type checker) can now generate the items function as a generator of literals? Is the following the expected behaviour of a type checker?
I think both these are reasonable things to support, but not something we should _require_ from type checkers. -- Ivan