|
1 | | -conformant = "Pass" |
| 1 | +conformant = "Partial" |
| 2 | +notes = """ |
| 3 | +Incorrectly allows variance on contrained type variables |
| 4 | +""" |
2 | 5 | output = """ |
3 | 6 | generics_basic.py:40: error: Value of type variable "AnyStr" of "concat" cannot be "Sequence[object]" [type-var] |
4 | 7 | generics_basic.py:41: error: Value of type variable "AnyStr" of "concat" cannot be "Sequence[object]" [type-var] |
5 | 8 | generics_basic.py:49: error: Type variable must have at least two constrained types [misc] |
6 | 9 | generics_basic.py:55: error: TypeVar constraint type cannot be parametrized by type variables [misc] |
7 | 10 | generics_basic.py:69: error: Value of type variable "AnyStr" of "concat" cannot be "Sequence[object]" [type-var] |
8 | | -generics_basic.py:121: error: Duplicate type variables in Generic[...] or Protocol[...] [misc] |
9 | | -generics_basic.py:157: error: Invalid index type "int" for "MyMap1[str, int]"; expected type "str" [index] |
10 | | -generics_basic.py:158: error: Invalid index type "int" for "MyMap2[int, str]"; expected type "str" [index] |
11 | | -generics_basic.py:162: error: Free type variable expected in Generic[...] [misc] |
12 | | -generics_basic.py:163: error: Free type variable expected in Protocol[...] [misc] |
13 | | -generics_basic.py:171: error: If Generic[...] or Protocol[...] is present it should list all type variables [misc] |
| 11 | +generics_basic.py:122: error: Duplicate type variables in Generic[...] or Protocol[...] [misc] |
| 12 | +generics_basic.py:158: error: Invalid index type "int" for "MyMap1[str, int]"; expected type "str" [index] |
| 13 | +generics_basic.py:159: error: Invalid index type "int" for "MyMap2[int, str]"; expected type "str" [index] |
| 14 | +generics_basic.py:163: error: Free type variable expected in Generic[...] [misc] |
| 15 | +generics_basic.py:164: error: Free type variable expected in Protocol[...] [misc] |
14 | 16 | generics_basic.py:172: error: If Generic[...] or Protocol[...] is present it should list all type variables [misc] |
15 | | -generics_basic.py:208: error: Dynamic metaclass not supported for "GenericMetaInstance" [misc] |
16 | | -generics_basic.py:208: error: Type variable "generics_basic.T" is unbound [valid-type] |
17 | | -generics_basic.py:208: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class) |
18 | | -generics_basic.py:208: note: (Hint: Use "T" in function signature to bind "T" inside a function) |
| 17 | +generics_basic.py:173: error: If Generic[...] or Protocol[...] is present it should list all type variables [misc] |
| 18 | +generics_basic.py:209: error: Dynamic metaclass not supported for "GenericMetaInstance" [misc] |
| 19 | +generics_basic.py:209: error: Type variable "generics_basic.T" is unbound [valid-type] |
| 20 | +generics_basic.py:209: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class) |
| 21 | +generics_basic.py:209: note: (Hint: Use "T" in function signature to bind "T" inside a function) |
19 | 22 | """ |
20 | | -conformance_automated = "Pass" |
| 23 | +conformance_automated = "Fail" |
21 | 24 | errors_diff = """ |
| 25 | +Line 75: Expected 1 errors |
22 | 26 | """ |
0 commit comments