8000 Fix async iterator protocol in aiomysql.utils._SAConnectionContextManager · Issue #410 · aio-libs/aiomysql · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Fix async iterator protocol in aiomysql.utils._SAConnectionContextManager #410
Closed
@webknjaz

Description

@webknjaz

__aiter__() should be a non-coroutine method returning an instance having __anext__() coroutine method.

TypeError: 'async for' received an object from __aiter__ that does not implement __anext__: coroutine

Example: aio-libs/aiopg@ef1cabe#diff-222246bbd6dde09cb363ee2c57a67887R72

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0