|
1 | 1 | conformant = "Pass" |
2 | 2 | output = """ |
3 | 3 | 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 | | - "Height" is incompatible with "tuple[Height, Width]" (reportArgumentType) |
5 | | -generics_typevartuple_basic.py:43:52 - error: Argument of type "tuple[Batch, Width]" cannot be assigned to parameter "shape" of type "tuple[*Shape@Array]" in function "__init__" |
6 | | - "Width" is incompatible with "Height" (reportArgumentType) |
7 | | -generics_typevartuple_basic.py:45:5 - error: Argument of type "tuple[Time, Batch, Width, Height]" cannot be assigned to parameter "shape" of type "tuple[*Shape@Array]" in function "__init__" |
8 | | - "Width" is incompatible with "Height" |
9 | | - "Height" is incompatible with "Width" (reportArgumentType) |
| 4 | + "Height" is incompatible with "tuple[*Shape@Array]" (reportArgumentType) |
| 5 | +generics_typevartuple_basic.py:43:35 - error: Expression of type "Array[Batch, Width]" is incompatible with declared type "Array[Batch, Height, Width]" |
| 6 | + "Array[Batch, Width]" is incompatible with "Array[Batch, Height, Width]" |
| 7 | + Type parameter "Shape@Array" is invariant, but "*tuple[Batch, Width]" is not the same as "*tuple[Batch, Height, Width]" (reportAssignmentType) |
| 8 | +generics_typevartuple_basic.py:44:41 - error: Expression of type "Array[Time, Batch, Width, Height]" is incompatible with declared type "Array[Time, Batch, Height, Width]" |
| 9 | + "Array[Time, Batch, Width, Height]" is incompatible with "Array[Time, Batch, Height, Width]" |
| 10 | + Type parameter "Shape@Array" is invariant, but "*tuple[Time, Batch, Width, Height]" is not the same as "*tuple[Time, Batch, Height, Width]" (reportAssignmentType) |
10 | 11 | generics_typevartuple_basic.py:52:22 - error: Expected unpacked TypeVarTuple; use Unpack[Shape] or *Shape (reportInvalidTypeForm) |
11 | 12 | generics_typevartuple_basic.py:53:37 - error: Expected unpacked TypeVarTuple; use Unpack[Shape] or *Shape (reportInvalidTypeForm) |
12 | 13 | generics_typevartuple_basic.py:56:34 - error: Expected unpacked TypeVarTuple; use Unpack[Shape] or *Shape (reportInvalidTypeForm) |
|
0 commit comments