You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current overloads for MutableMapping.update() allow the use of keyword arguments even if the key type isn't str. I think it's possible to put a type hint on self so that keyword arguments only pass type checking when the key type is str, like this.
cfriedland5
changed the title
Improve overloads for MutableMapping.update
Improve MutableMapping.update's overloads to reflect relationship between key type and **kwargs
Jul 28, 2024
The current overloads for MutableMapping.update() allow the use of keyword arguments even if the key type isn't str. I think it's possible to put a type hint on self so that keyword arguments only pass type checking when the key type is str, like this.
See the current overloads for MutableMapping.update here:
typeshed/stdlib/typing.pyi
Lines 749 to 754 in 3db7f01
The text was updated successfully, but these errors were encountered: