You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can be fixed using async_generator.async_generator, but I think that was intended for Python3.5 (which lacked native async generators) and not for Python3.6.
I have an abstract class that defines an abstract async context manager (Python 3.7 code):
In order to make it compatible with Python 3.6, I would use
async_generator.asynccontextmanager
However, this raises an error:
This can be fixed using
async_generator.async_generator
, but I think that was intended for Python3.5 (which lacked native async generators) and not for Python3.6.This seems to work on Python3.5 too.
I can extend the class and implement the method without using
async_generator.async_generator
in both, Python3.6 and Python3.7 (as expected):Maybe the docs / readme could include an abstract method example.
Or maybe Python3.6 should work without adding
@async_generator
.The text was updated successfully, but these errors were encountered: