-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
bugmypy got something wrongmypy got something wrongpriority-0-hightopic-join-v-unionUsing join vs. using unionsUsing join vs. using unionstopic-usability
Description
from typing import AnyStr
def f(x: AnyStr, y: AnyStr) -> AnyStr:
print(x + y)
f('one', b'two')
This correctly fails to typecheck because the second arg is bytes, but the error message is hard to follow:
test.py:6: error: Type argument 1 of "f" has incompatible value "object"
daneah and griels
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongpriority-0-hightopic-join-v-unionUsing join vs. using unionsUsing join vs. using unionstopic-usability