We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 800e8ff commit 1feabc8Copy full SHA for 1feabc8
test-data/unit/pythoneval.test
@@ -1924,3 +1924,15 @@ _testStarUnpackNestedUnderscore.py:10: error: List item 0 has incompatible type
1924
_testStarUnpackNestedUnderscore.py:10: error: List item 1 has incompatible type "int"; expected "str"
1925
_testStarUnpackNestedUnderscore.py:11: note: Revealed type is "builtins.list[builtins.str]"
1926
_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