-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrongfalse-positivemypy gave an error on correct codemypy gave an error on correct codepriority-1-normal
Description
When using --strict-equality, the following program produces a false positive error, since Type[Any] should overlap with all type objects:
from typing import Any
data: Any = []
# Non-overlapping container check (element type: "Type[Any]", container item type: "ABCMeta")
print(type(data) in [dict, list]) # Truecc @ilevkivskyi
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongfalse-positivemypy gave an error on correct codemypy gave an error on correct codepriority-1-normal