|
1 | | -conformance_automated = "Pass" |
| 1 | +conformance_automated = "Fail" |
| 2 | +conformant = "Partial" |
| 3 | +notes = """ |
| 4 | +Cannot find a common supertype of `list[int]` and `set[int]` in order to solve a type variable bound to `Sized`. |
| 5 | +""" |
2 | 6 | errors_diff = """ |
| 7 | +Lines 43, 44: Expected exactly one error (tag 'mixed-collections') |
| 8 | +Line 43: Unexpected errors ['assert_type(list[int], list[int] | set[int]) failed [assert-type]', 'Argument `set[int]` is not assignable to parameter `y` with type `list[int]` in function `longer` [bad-argument-type]'] |
| 9 | +Line 44: Unexpected errors ['assert_type(list[int], Collection[int]) failed [assert-type]', 'Argument `set[int]` is not assignable to parameter `y` with type `list[int]` in function `longer` [bad-argument-type]'] |
3 | 10 | """ |
4 | 11 | output = """ |
5 | 12 | ERROR generics_upper_bound.py:24:38-45: Type variable bounds and constraints must be concrete [invalid-annotation] |
6 | | -ERROR generics_upper_bound.py:43:12-55: assert_type(list[int], list[int] | set[int]) failed [assert-type] |
7 | | -ERROR generics_upper_bound.py:43:25-31: Argument `set[int]` is not assignable to parameter `y` with type `list[int]` in function `longer` [bad-argument-type] |
8 | | -ERROR generics_upper_bound.py:51:7-13: `int` is not assignable to upper bound `Sized` of type variable `ST` [bad-specialization] |
9 | | -ERROR generics_upper_bound.py:56:38-49: TypeVar cannot have both constraints and bound [invalid-type-var] |
| 13 | +ERROR generics_upper_bound.py:43:16-59: assert_type(list[int], list[int] | set[int]) failed [assert-type] |
| 14 | +ERROR generics_upper_bound.py:43:31-35: Argument `set[int]` is not assignable to parameter `y` with type `list[int]` in function `longer` [bad-argument-type] |
| 15 | +ERROR generics_upper_bound.py:44:16-54: assert_type(list[int], Collection[int]) failed [assert-type] |
| 16 | +ERROR generics_upper_bound.py:44:31-35: Argument `set[int]` is not assignable to parameter `y` with type `list[int]` in function `longer` [bad-argument-type] |
| 17 | +ERROR generics_upper_bound.py:52:7-13: `int` is not assignable to upper bound `Sized` of type variable `ST` [bad-specialization] |
| 18 | +ERROR generics_upper_bound.py:57:38-49: TypeVar cannot have both constraints and bound [invalid-type-var] |
10 | 19 | """ |
0 commit comments