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
$ mypy tmp_with_signature.py
tmp_with_signature.py:6: error: Too many arguments for "xyz"
Found 1 error in 1 file (checked 1 source file)
It is strange to me that the error is only reported when a has an annotation, which seems unrelated to the number keyword arguments being passed to xyz. If I change each instance of **kwargs to *args, the error goes away. Seems like a bug...
mypy checks the following without error:
However, I get an error when I add a type signature to the argument
a
incaller
:Mypy gives the following error message:
It is strange to me that the error is only reported when
a
has an annotation, which seems unrelated to the number keyword arguments being passed toxyz
. If I change each instance of**kwargs
to*args
, the error goes away. Seems like a bug...Mypy version: 0.790+dev.007b7af9f96df9d23744d93fdf54e83bcdc01630
CPython version: 3.8.3
The text was updated successfully, but these errors were encountered: