PyCharm type hinting enum iteration : <p>Python's enum class supports iteration, but PyCharm has trouble figuring this out.</p>

<pre><code>from enum import Enum

class Color(Enum):
    RED = 0
    BLUE = 1

for color in Color:
    # Warning: Expected 'collections.Iterable', got 'Type[Color]' instead
    print(color)
</code></pre>

<p>Though the method <code>EnumMeta.__iter__</code> exists, PyCharm has trouble figuring this out.</p>

<p>I don't mind manually adding type hinting to work around the problem, I'm just not sure what and where.</p>
