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
{{ message }}
Repository navigation
Multiple dict unpacking for function arguments gives type error #4708
$ python -m mypy mypy_problem.py
mypy_problem.py:8: error: Too many arguments for "fn"
I expect this to not give an error because as far as I know it's valid python code - it works at least! A workaround is to wrap the whole thing in another dictionary, i.e.:
fn(**{**{'a': 10}, **{'b': 20, 'c': 30}})
But this is messy and possibly introduces an additional overhead.
Activity
Improve ambiguous **kwarg checking (#9573)