-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
format_map over specified #3824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Feel free to submit a PR changing the argument type to a Protocol that just has |
@jaraco Are you working on this? |
I am not. I would be delighted if someone else would work on it. |
JelleZijlstra
added a commit
to JelleZijlstra/typeshed
that referenced
this issue
May 28, 2020
Closed
srittau
pushed a commit
that referenced
this issue
May 28, 2020
vishalkuo
pushed a commit
to vishalkuo/typeshed
that referenced
this issue
Jun 26, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The definition of format_map indicates that the input is a
Mapping[str, Any]
when aMapping
is over-specified.format_map
only requires the__getitem__
interface of aMapping
(not__iter__
nor__len__
). RequiringMapping
forces someone writing an adapter to supply a fullMapping
implementation for no purpose.The text was updated successfully, but these errors were encountered: