Skip to content

format_map over specified #3824

@jaraco

Description

@jaraco

The definition of format_map indicates that the input is a Mapping[str, Any] when a Mapping is over-specified. format_map only requires the __getitem__ interface of a Mapping (not __iter__ nor __len__). Requiring Mapping forces someone writing an adapter to supply a full Mapping implementation for no purpose.

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