syrusakbary / promise

Ultra-performant Promise implementation in Python
MIT License
362 stars 76 forks source link

Update the type of __await__ for Promise #100

Closed patjakdev closed 1 year ago

patjakdev commented 1 year ago

mypy expects the type of __await__ to be a Generator rather than an Iterator.