Here's a short example of what I'd think should be a correctly typed program...
from typing import Iterable
def f() -> Iterable[int]:
yield 1
print(next(f()))
Running mypy on this (under Python 3.4, no strict mode, no other flags at all) results in the following error:
error: No overload variant of "next" matches argument types [typing.Iterable[builtins.int]]
Is this a bug, or am I doing something wrong?