Skip to content

functools.partial weirdness #1574

Closed
Closed
@berdario

Description

@berdario

Another weird error while using partial:

partial(dict, **{'foo': '1'})()['foo']

yields

 a.py:3: error: Invalid index type "str" for "dict"

Btw, this idiom might look weird, but it's just a workaround that I'm using until #704 will be fixed

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