Custom __iter__
method yields false positive when used with star args (*
)
#14470
Labels
bug
mypy got something wrong
Bug Report
Custom implemented
__iter__
method on class mismatches when passing positional arguments with asterisk(*
)To Reproduce
Expected Behavior
Mypy should yield an error when passing positional parameters with asterisk(
*
) that do not match the expected type.In this case it should complain on the function call on line 12, as it calls
func
with a mismatching type of iterable.Actual Behavior
Passing iterator with only
*
yields no error.Your Environment
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: