File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments