|
1 | | -conformant = "Partial" |
2 | | -notes = """ |
3 | | -Does not reject redeclaration of type alias with the same name. |
4 | | -Does not detect circular definitions. |
5 | | -""" |
6 | | -conformance_automated = "Fail" |
| 1 | +conformant = "Pass" |
| 2 | +conformance_automated = "Pass" |
7 | 3 | errors_diff = """ |
8 | | -Line 82: Expected 1 errors |
9 | | -Line 84: Expected 1 errors |
10 | | -Lines 51, 52: Expected error (tag 'TA14') |
11 | | -Lines 88, 89: Expected error (tag 'RTA6') |
12 | 4 | """ |
13 | 5 | output = """ |
14 | 6 | ERROR aliases_type_statement.py:17:1-21: Object of class `TypeAliasType` has no attribute `bit_count` [missing-attribute] |
15 | 7 | ERROR aliases_type_statement.py:19:1-11: Expected a callable, got `TypeAlias[GoodAlias1, type[int]]` [not-callable] |
16 | 8 | ERROR aliases_type_statement.py:23:7-30: Object of class `TypeAliasType` has no attribute `other_attrib` [missing-attribute] |
17 | 9 | ERROR aliases_type_statement.py:26:18-28: Cannot use scoped type alias `GoodAlias1` as a base class. Use a legacy type alias instead: `GoodAlias1: TypeAlias = type[int]` [invalid-inheritance] |
18 | 10 | ERROR aliases_type_statement.py:31:22-32: Expected class object, got `TypeAliasType` [invalid-argument] |
19 | | -ERROR aliases_type_statement.py:37:22-62: function call cannot be used in annotations [invalid-annotation] |
20 | | -ERROR aliases_type_statement.py:38:22-32: list literal cannot be used in annotations [invalid-annotation] |
21 | | -ERROR aliases_type_statement.py:39:22-35: tuple literal cannot be used in annotations [invalid-annotation] |
22 | | -ERROR aliases_type_statement.py:40:22-45: list comprehension cannot be used in annotations [invalid-annotation] |
23 | | -ERROR aliases_type_statement.py:41:22-32: dict literal cannot be used in annotations [invalid-annotation] |
| 11 | +ERROR aliases_type_statement.py:37:22-62: Function call cannot be used in annotations [invalid-annotation] |
| 12 | +ERROR aliases_type_statement.py:38:22-32: List literal cannot be used in annotations [invalid-annotation] |
| 13 | +ERROR aliases_type_statement.py:39:22-35: Tuple literal cannot be used in annotations [invalid-annotation] |
| 14 | +ERROR aliases_type_statement.py:40:22-45: List comprehension cannot be used in annotations [invalid-annotation] |
| 15 | +ERROR aliases_type_statement.py:41:22-32: Dict literal cannot be used in annotations [invalid-annotation] |
24 | 16 | ERROR aliases_type_statement.py:41:24-25: Could not find name `a` [unknown-name] |
25 | 17 | ERROR aliases_type_statement.py:41:29-30: Could not find name `b` [unknown-name] |
26 | | -ERROR aliases_type_statement.py:42:22-37: function call cannot be used in annotations [invalid-annotation] |
27 | | -ERROR aliases_type_statement.py:43:22-30: invalid subscript expression cannot be used in annotations [invalid-annotation] |
28 | | -ERROR aliases_type_statement.py:44:22-43: if expression cannot be used in annotations [invalid-annotation] |
| 18 | +ERROR aliases_type_statement.py:42:22-37: Function call cannot be used in annotations [invalid-annotation] |
| 19 | +ERROR aliases_type_statement.py:43:22-30: Invalid subscript expression cannot be used in annotations [invalid-annotation] |
| 20 | +ERROR aliases_type_statement.py:44:22-43: If expression cannot be used in annotations [invalid-annotation] |
29 | 21 | ERROR aliases_type_statement.py:45:22-26: Expected `BadTypeAlias9` to be a type alias, got `Literal[1]` [invalid-type-alias] |
30 | | -ERROR aliases_type_statement.py:46:23-27: bool literal cannot be used in annotations [invalid-annotation] |
31 | | -ERROR aliases_type_statement.py:47:23-24: number literal cannot be used in annotations [invalid-annotation] |
32 | | -ERROR aliases_type_statement.py:48:23-34: boolean operation cannot be used in annotations [invalid-annotation] |
33 | | -ERROR aliases_type_statement.py:49:23-33: f-string cannot be used in annotations [invalid-annotation] |
| 22 | +ERROR aliases_type_statement.py:46:23-27: Bool literal cannot be used in annotations [invalid-annotation] |
| 23 | +ERROR aliases_type_statement.py:47:23-24: Number literal cannot be used in annotations [invalid-annotation] |
| 24 | +ERROR aliases_type_statement.py:48:23-34: Boolean operation cannot be used in annotations [invalid-annotation] |
| 25 | +ERROR aliases_type_statement.py:49:23-33: F-string cannot be used in annotations [invalid-annotation] |
| 26 | +ERROR aliases_type_statement.py:52:6-20: Cannot redefine existing type alias `BadTypeAlias14` [redefinition] |
34 | 27 | ERROR aliases_type_statement.py:56:5-30: `type` statement is not allowed in this context [invalid-syntax] |
35 | 28 | ERROR aliases_type_statement.py:62:15-25: Type parameters used in `TA1` but not declared [invalid-type-var] |
36 | 29 | ERROR aliases_type_statement.py:67:12-20: Type parameters used in `TA2` but not declared [invalid-type-var] |
37 | 30 | ERROR aliases_type_statement.py:77:7-41: `str` is not assignable to upper bound `int` of type variable `S` [bad-specialization] |
38 | 31 | ERROR aliases_type_statement.py:79:7-41: `int` is not assignable to upper bound `str` of type variable `T` [bad-specialization] |
| 32 | +ERROR aliases_type_statement.py:82:28-47: Found cyclic self-reference in `RecursiveTypeAlias3` [invalid-type-alias] |
| 33 | +ERROR aliases_type_statement.py:84:31-59: Found cyclic self-reference in `RecursiveTypeAlias4` [invalid-type-alias] |
| 34 | +ERROR aliases_type_statement.py:89:28-47: Found cyclic self-reference in `RecursiveTypeAlias7` [invalid-type-alias] |
39 | 35 | """ |
0 commit comments