We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I give mypy:
def foo(bar: bool = False, **kwargs: str) -> None: print('foo(bar=%s, **kwargs=%s)' % (bar, kwargs)) foo(**{'a': 'a', 'b': 'b'})
I get:
4: error: Argument 1 to "foo" has incompatible type **Dict[str, str]; expected "bool"
On the other hand, these work fine:
foo(a='a', b='b') foo(a='a', b='b', bar=True)
Running the code, python has no objection to it:
$ python ~/tmp.py foo(bar=False, **kwargs={'a': 'a', 'b': 'b'})
This is with:
$ python --version Python 3.6.0 $ mypy --version mypy 0.470```
The text was updated successfully, but these errors were encountered:
I believe this is a duplicate of #1969. @jeffkaufman If you agree can you please close your own issue?
Sorry, something went wrong.
Thanks, that does look the same.
No branches or pull requests
When I give mypy:
I get:
On the other hand, these work fine:
Running the code, python has no objection to it:
This is with:
The text was updated successfully, but these errors were encountered: