79172940

Date: 2024-11-09 14:12:17
Score: 0.5
Natty:
Report link

Yes, you just forgot return:

    def __await__(self):
         # Just do exactly what ten() does
        return (yield from self.ten().__await__())

This is the classic way, and return (yield from awaitable.__await__()) is equivalent to return await awaitable in an asynchronous function.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ilya Egorov