Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamid Alavi Toussi committed Jul 26, 2023
1 parent 0032f73 commit 99d9052
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test-data/unit/check-boolean-op-right-type.test
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit 99d9052

Please sign in to comment.