You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: conformance/results/mypy/generics_typevartuple_basic.toml
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,6 @@ generics_typevartuple_basic.py:45: error: Argument 1 to "Array" has incompatible
9
9
generics_typevartuple_basic.py:52: error: Free type variable expected in Generic[...] [misc]
10
10
generics_typevartuple_basic.py:53: error: TypeVarTuple "Shape" is only valid with an unpack [valid-type]
11
11
generics_typevartuple_basic.py:56: error: TypeVarTuple "Shape" is only valid with an unpack [valid-type]
12
-
generics_typevartuple_basic.py:57: error: Incompatible return value type (got "tuple[*Shape]", expected "tuple[Any]") [return-value]
13
12
generics_typevartuple_basic.py:59: error: TypeVarTuple "Shape" is only valid with an unpack [valid-type]
14
13
generics_typevartuple_basic.py:65: error: Unexpected keyword argument "covariant" for "TypeVarTuple" [misc]
15
14
generics_typevartuple_basic.py:66: error: Too many positional arguments for "TypeVarTuple" [misc]
@@ -20,7 +19,5 @@ generics_typevartuple_basic.py:106: error: Can only use one type var tuple in a
20
19
"""
21
20
conformance_automated = "Fail"
22
21
errors_diff = """
23
-
Line 89: Expected 1 errors
24
22
Line 90: Expected 1 errors
25
-
Line 57: Unexpected errors ['generics_typevartuple_basic.py:57: error: Incompatible return value type (got "tuple[*Shape]", expected "tuple[Any]") [return-value]']
Copy file name to clipboardExpand all lines: conformance/results/pyrefly/generics_typevartuple_args.toml
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
conformant = "Pass"
2
-
conformance_automated = "Pass"
2
+
conformance_automated = "Fail"
3
+
notes = """
4
+
Does not correctly solve TypeVarTuple with heterogeneous bounds.
5
+
"""
3
6
errors_diff = """
7
+
Line 76: Unexpected errors ["Argument `tuple[Literal['1']]` is not assignable to parameter `*args` with type `tuple[int]` in function `func4` [bad-argument-type]"]
4
8
"""
5
9
output = """
6
10
ERROR generics_typevartuple_args.py:33:12-23: Unpacked argument `tuple[Literal[0], Literal['']]` is not assignable to parameter `*args` with type `tuple[*@_, Env]` in function `exec_le` [bad-argument-type]
ERROR generics_typevartuple_args.py:59:6-10: Unpacked argument `tuple[Literal['']]` is not assignable to parameter `*args` with type `tuple[int, *tuple[str, ...], str]` in function `func2` [bad-argument-type]
12
16
ERROR generics_typevartuple_args.py:67:6-9: Unpacked argument `tuple[Literal[1]]` is not assignable to parameter `*args` with type `tuple[int, str]` in function `func3` [bad-argument-type]
13
17
ERROR generics_typevartuple_args.py:75:13-19: Argument `tuple[Literal[1], Literal[2]]` is not assignable to parameter `*args` with type `tuple[int]` in function `func4` [bad-argument-type]
18
+
ERROR generics_typevartuple_args.py:76:13-19: Argument `tuple[Literal['1']]` is not assignable to parameter `*args` with type `tuple[int]` in function `func4` [bad-argument-type]
Copy file name to clipboardExpand all lines: conformance/results/pyrefly/generics_typevartuple_basic.toml
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
1
conformant = "Partial"
2
2
notes = """
3
-
TypeVarTuple is pinned too early when calling generic function
3
+
TypeVarTuple is pinned too early when calling generic function.
4
4
"""
5
5
conformance_automated = "Fail"
6
6
errors_diff = """
7
7
Line 85: Unexpected errors ['Argument `tuple[float]` is not assignable to parameter `arg2` with type `tuple[int]` in function `func2` [bad-argument-type]']
8
+
Line 89: Unexpected errors ["Argument `tuple[Literal['0']]` is not assignable to parameter `arg2` with type `tuple[int]` in function `func2` [bad-argument-type]"]
8
9
"""
9
10
output = """
10
11
ERROR generics_typevartuple_basic.py:42:34-43: Argument `Height` is not assignable to parameter `shape` with type `tuple[Height, Width]` in function `Array.__init__` [bad-argument-type]
Copy file name to clipboardExpand all lines: conformance/results/pyright/generics_typevartuple_args.toml
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,7 @@
1
-
conformant = "Pass"
1
+
conformance_automated = "Fail"
2
+
errors_diff = """
3
+
Line 76: Unexpected errors ['generics_typevartuple_args.py:76:14 - error: Argument of type "tuple[Literal[\\'1\\']]" cannot be assigned to parameter "args" of type "tuple[*Ts@func4]" in function "func4"']
4
+
"""
2
5
output = """
3
6
generics_typevartuple_args.py:33:20 - error: Argument of type "Literal['']" cannot be assigned to parameter of type "Env" in function "exec_le"
4
7
"Literal['']" is not assignable to "Env" (reportArgumentType)
generics_typevartuple_args.py:75:13 - error: Argument of type "tuple[Literal[1], Literal[2]]" cannot be assigned to parameter "args" of type "tuple[*Ts@func4]" in function "func4"
15
18
"tuple[Literal[1], Literal[2]]" is not assignable to "tuple[int]"
16
19
Tuple size mismatch; expected 1 but received 2 (reportArgumentType)
17
-
"""
18
-
conformance_automated = "Pass"
19
-
errors_diff = """
20
+
generics_typevartuple_args.py:76:14 - error: Argument of type "tuple[Literal['1']]" cannot be assigned to parameter "args" of type "tuple[*Ts@func4]" in function "func4"
21
+
"Literal['1']" is not assignable to "int" (reportArgumentType)
Copy file name to clipboardExpand all lines: conformance/results/pyright/generics_typevartuple_basic.toml
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,7 @@
1
-
conformant = "Pass"
1
+
conformance_automated = "Fail"
2
+
errors_diff = """
3
+
Line 89: Unexpected errors ['generics_typevartuple_basic.py:89:14 - error: Argument of type "tuple[Literal[\\'0\\']]" cannot be assigned to parameter "arg2" of type "tuple[*Ts@func2]" in function "func2"']
4
+
"""
2
5
output = """
3
6
generics_typevartuple_basic.py:42:34 - error: Argument of type "Height" cannot be assigned to parameter "shape" of type "tuple[*Shape@Array]" in function "__init__"
4
7
"Height" is not assignable to "tuple[*Shape@Array]" (reportArgumentType)
@@ -30,6 +33,3 @@ generics_typevartuple_basic.py:100:17 - error: Argument of type "Array[Height, W
30
33
generics_typevartuple_basic.py:106:14 - error: Generic class can have at most one TypeVarTuple type parameter but received multiple ("Ts1", "Ts2") (reportGeneralTypeIssues)
31
34
generics_typevartuple_basic.py:106:29 - error: Type argument list can have at most one unpacked TypeVarTuple or tuple (reportInvalidTypeForm)
<thclass="column col2 partially-conformant"><divclass="hover-text">Partial<spanclass="tooltip-text" id="bottom"><p>Does not enforce that tuples captured by TypeVarTuple are same type.</p></span></div></th>
375
-
<thclass="column col2 conformant">Pass</th>
376
-
<thclass="column col2 conformant">Pass</th>
377
-
<thclass="column col2 conformant">Pass</th>
374
+
<thclass="column col2 partially-conformant"><divclass="hover-text">Partial<spanclass="tooltip-text" id="bottom"><p>Does not enforce that tuples captured by TypeVarTuple are of the same length.</p></span></div></th>
<thclass="column col2 partially-conformant"><divclass="hover-text">Partial<spanclass="tooltip-text" id="bottom"><p>Does not enforce that tuples captured by TypeVarTuple are same length.</p><p>Does not enforce that tuples captured by TypeVarTuple are same type.</p></span></div></th>
381
-
<thclass="column col2 conformant">Pass</th>
382
-
<thclass="column col2 conformant">Pass</th>
383
-
<thclass="column col2 partially-conformant"><divclass="hover-text">Partial<spanclass="tooltip-text" id="bottom"><p>TypeVarTuple is pinned too early when calling generic function</p></span></div></th>
380
+
<thclass="column col2 partially-conformant"><divclass="hover-text">Partial<spanclass="tooltip-text" id="bottom"><p>Does not enforce that tuples captured by TypeVarTuple are same length.</p></span></div></th>
<thclass="column col2 not-conformant"><divclass="hover-text">Unknown<spanclass="tooltip-text" id="bottom"><p>Does not correctly solve TypeVarTuple with heterogeneous bounds.</p></span></div></th>
383
+
<thclass="column col2 partially-conformant"><divclass="hover-text">Partial<spanclass="tooltip-text" id="bottom"><p>TypeVarTuple is pinned too early when calling generic function.</p></span></div></th>
Copy file name to clipboardExpand all lines: conformance/results/zuban/generics_typevartuple_args.toml
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
-
conformance_automated = "Pass"
1
+
conformance_automated = "Fail"
2
2
errors_diff = """
3
+
Line 76: Unexpected errors ['generics_typevartuple_args.py:76: error: Argument 2 to "func4" has incompatible type "tuple[Literal[\\'1\\']]"; expected "tuple[int]" [arg-type]']
3
4
"""
4
5
output = """
5
6
generics_typevartuple_args.py:33: error: Argument 3 to "exec_le" has incompatible type "str"; expected "Env" [arg-type]
@@ -11,4 +12,5 @@ generics_typevartuple_args.py:59: error: Too few arguments for "func2" [call-ar
11
12
generics_typevartuple_args.py:59: error: Argument 1 to "func2" has incompatible type "str"; expected "int" [arg-type]
12
13
generics_typevartuple_args.py:67: error: Too few arguments for "func3" [call-arg]
13
14
generics_typevartuple_args.py:75: error: Argument 2 to "func4" has incompatible type "tuple[Literal[1], int]"; expected "tuple[int]" [arg-type]
15
+
generics_typevartuple_args.py:76: error: Argument 2 to "func4" has incompatible type "tuple[Literal['1']]"; expected "tuple[int]" [arg-type]
Copy file name to clipboardExpand all lines: conformance/results/zuban/generics_typevartuple_basic.toml
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
-
conformance_automated = "Pass"
1
+
conformance_automated = "Fail"
2
+
notes = """
3
+
Does not correctly solve TypeVarTuple with heterogeneous bounds.
4
+
"""
2
5
errors_diff = """
6
+
Line 89: Unexpected errors ['generics_typevartuple_basic.py:89: error: Argument 2 to "func2" has incompatible type "tuple[Literal[\\'0\\']]"; expected "tuple[int]" [arg-type]']
3
7
"""
4
8
output = """
5
9
generics_typevartuple_basic.py:42: error: Argument 1 to "Array" has incompatible type "Height"; expected "tuple[Height, Width]" [arg-type]
0 commit comments