-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
false-positivemypy gave an error on correct codemypy gave an error on correct codefeaturepriority-2-low
Description
Code:
a = set().union(*[[1],[2],[3]]) # type: Set[int]
Expected:This should work fine
Result:
error: Argument 1 to "union" of "set" has incompatible type *List[List[int]]; expected Iterable[None]
error: Incompatible types in assignment (expression has type Set[None], variable has type Set[int])
I'm fairly new to mypy, so please let me know if this is user error.
leesei, djrochford, edlanglois, samestep, sush-abc and 2 more
Metadata
Metadata
Assignees
Labels
false-positivemypy gave an error on correct codemypy gave an error on correct codefeaturepriority-2-low