Typing hinting enum iteration is wrong with mixin type

Answered

On PyCharm 2019.1.2 (Professional Edition)

It infers each element to be `str` type instead of `enum` type:

Rules that might be helpful:

https://docs.python.org/3/library/enum.html#others

0
1 comment

Hi,

I filed a bug about it https://youtrack.jetbrains.com/issue/PY-36205, please vote for it and follow for updates.

0

Please sign in to leave a comment.