diff --git a/test-data/unit/check-boolean-op-right-type.test b/test-data/unit/check-boolean-op-right-type.test new file mode 100644 index 000000000000..f500a3e4dde2 --- /dev/null +++ b/test-data/unit/check-boolean-op-right-type.test @@ -0,0 +1,6 @@ +[case testBooleanOpRightType] +from typing import Dict +def foo(x: Dict[str, str]) -> str: return x.get("a") or x.get("b", "c") +def bar(x: Dict[str, str]) -> str: return None or x.get("c","d") +[builtins fixtures/dict.pyi] +[typing fixtures/typing-typeddict.pyi]