dropbox / pyannotate

Auto-generate PEP-484 annotations
Apache License 2.0
1.43k stars 59 forks source link

Support YIELD opcode #64

Closed gvanrossum closed 6 years ago

gvanrossum commented 6 years ago

This is not entirely satisfying, since a generator that yields a succession of ints and strs will be typed as Union[Iterator[str], Iterator[int]] rather than as Iterator[Union[int, str]].

Fixes #56