Closed crubier closed 5 years ago
Async-correctness validation using curio.meta.asyncABC does not work for async generators.
curio.meta.asyncABC
Example:
class Parent(asyncABC): @abstractmethod async def foo(self): raise NotImplementedError class Child(Parent): async def foo(self): yield 1 return
This raises the following error:
TypeError: Must use async def foo(self)
Which is already the case ! (But of course foo is not a coroutine but an async @generator)
foo
This is probably due to the fact that asyncABC search for coroutines, when it should actually check for coroutines and async generators
asyncABC
Async-correctness validation using
curio.meta.asyncABC
does not work for async generators.Example:
This raises the following error:
Which is already the case ! (But of course
foo
is not a coroutine but an async @generator)This is probably due to the fact that
asyncABC
search for coroutines, when it should actually check for coroutines and async generators