Skip to content

Mypy throws error using sorted with a key function specified #1160

@timabbott

Description

@timabbott

Reproducer: sorted([{'name': 'test'}], key=lambda x: x['name'])

Moved from #1150.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions