Skip to content

Commit 11737d1

Browse files
committed
Add regression test
1 parent 2e0dfde commit 11737d1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test-data/unit/pythoneval.test

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,3 +2223,10 @@ def func(one: Dict[K, V], two: Mapping[K2, V2]) -> Dict[Union[K, K2], Union[V, V
22232223
def caller(arg1: Mapping[K, V], arg2: Mapping[K2, V2]) -> Dict[Union[K, K2], Union[V, V2]]:
22242224
_arg1 = arg1 if isinstance(arg1, dict) else dict(arg1)
22252225
return func(_arg1, arg2)
2226+
2227+
[case testStrictEqualityWithList]
2228+
# flags: --strict-equality
2229+
def f(x: int, y: list[str]):
2230+
x in y
2231+
[out]
2232+
_testStrictEqualityWithList.py:3: error: Non-overlapping container check (element type: "int", container item type: "str")

0 commit comments

Comments
 (0)