gootsaud / bike-riding

yield would not work as expected in the magic method PTC-W0059
Bug risk
Critical
2 years ago2 years old
Special method __aiter__ cannot be converted into a generator
 940
 941    async def __aiter__(self) -> t.AsyncIterator[t.Any]:
 942        for _ in ():
 943            yield 944
 945    def __bool__(self) -> bool:
 946        return False