gootsaud / bike-riding

Bad async magic method PTC-W0045
Bug risk
Major
2 years ago2 years old
Magic method __aiter__ can not be made async
 938    def __iter__(self) -> t.Iterator[t.Any]:
 939        yield from ()
 940
 941    async def __aiter__(self) -> t.AsyncIterator[t.Any]: 942        for _ in ():
 943            yield
 944