Skip to content

asyncpg.Record is not a mapping #122

Closed
@poofeg

Description

@poofeg

Why doesn't asyncpg.Record inherit collections.abc.Mapping[str, Any]? This is a valid code:

record: asyncpg.Record
...
some_func(**record)

But mypy says: error: Argument after ** must be a mapping, not "Record".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions