`typing.Generator` is specified in the PEP 484 draft. Allow it to be used as the return type of a generator function.