Unions of collectively valid argument types not accepted by @overload groups #3556
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-1-normal
topic-overloads
topic-union-types
This fails:
example.py:6: error: Argument 1 to "search" has incompatible type "Union[str, Pattern[str]]"; expected "unicode"
However, this passes without comment:
The text was updated successfully, but these errors were encountered: