Skip to content
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

Support dict.update(name=x, ...) #3118

Closed
pjenvey opened this issue Apr 3, 2017 · 1 comment
Closed

Support dict.update(name=x, ...) #3118

pjenvey opened this issue Apr 3, 2017 · 1 comment

Comments

@pjenvey
Copy link
Member

pjenvey commented Apr 3, 2017

Like #239 and #984, mypy doesn't seem to know about update w/ kwargs:

from typing import Dict

def t(d):
    # type: (Dict[str, str]) -> None
    d.update(foo='bar', baz='quux')

t.py:5: error: No overload variant of "update" of "dict" matches argument types [builtins.str, builtins.str]

@JukkaL
Copy link
Collaborator

JukkaL commented Apr 4, 2017

This is a duplicate of #1031.

@JukkaL JukkaL closed this as completed Apr 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants