Skip to content

Commit 1feabc8

Browse files
committed
Add a failing test case
1 parent 800e8ff commit 1feabc8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test-data/unit/pythoneval.test

+12
Original file line numberDiff line numberDiff line change
@@ -1924,3 +1924,15 @@ _testStarUnpackNestedUnderscore.py:10: error: List item 0 has incompatible type
19241924
_testStarUnpackNestedUnderscore.py:10: error: List item 1 has incompatible type "int"; expected "str"
19251925
_testStarUnpackNestedUnderscore.py:11: note: Revealed type is "builtins.list[builtins.str]"
19261926
_testStarUnpackNestedUnderscore.py:16: note: Revealed type is "builtins.list[builtins.object]"
1927+
1928+
[case testStrictEqualitywithParamSpec]
1929+
# flags: --strict-equality
1930+
from typing import Generic
1931+
from typing_extensions import ParamSpec
1932+
1933+
P = ParamSpec("P")
1934+
1935+
class Foo(Generic[P]): ...
1936+
1937+
def check(foo1: Foo[[int]], foo2: Foo[[str]]) -> bool:
1938+
return foo1 == foo2

0 commit comments

Comments
 (0)