|
| 1 | +conformance_automated = "Fail" |
| 2 | +conformant = "Partial" |
| 3 | +notes = """ |
| 4 | +Does not reject use of the `type` statement inside functions. |
| 5 | +Does not reject circular definitions of type aliases. |
| 6 | +Does not reject redeclarations of type aliases. |
| 7 | +Does not support `type` statements generic over `TypeVarTuple`s. |
| 8 | +""" |
| 9 | +errors_diff = """ |
| 10 | +Line 56: Expected 1 errors |
| 11 | +Line 84: Expected 1 errors |
| 12 | +Lines 51, 52: Expected error (tag 'TA14') |
| 13 | +Line 10: Unexpected errors ['aliases_type_statement.py:10:52: error[invalid-type-arguments] Too many type arguments: expected 2, got 3', 'aliases_type_statement.py:10:52: error[invalid-type-form] `...` is not allowed in this context in a type expression'] |
| 14 | +""" |
| 15 | +output = """ |
| 16 | +aliases_type_statement.py:10:52: error[invalid-type-arguments] Too many type arguments: expected 2, got 3 |
| 17 | +aliases_type_statement.py:10:52: error[invalid-type-form] `...` is not allowed in this context in a type expression |
| 18 | +aliases_type_statement.py:17:1: error[unresolved-attribute] Object of type `TypeAliasType` has no attribute `bit_count` |
| 19 | +aliases_type_statement.py:19:1: error[call-non-callable] Object of type `TypeAliasType` is not callable |
| 20 | +aliases_type_statement.py:23:7: error[unresolved-attribute] Object of type `TypeAliasType` has no attribute `other_attrib` |
| 21 | +aliases_type_statement.py:26:18: error[invalid-base] Invalid class base with type `TypeAliasType` |
| 22 | +aliases_type_statement.py:31:22: error[invalid-argument-type] Argument to function `isinstance` is incorrect: Expected `type | UnionType | tuple[Divergent, ...]`, found `TypeAliasType` |
| 23 | +aliases_type_statement.py:37:22: error[invalid-type-form] Function calls are not allowed in type expressions |
| 24 | +aliases_type_statement.py:38:22: error[invalid-type-form] List literals are not allowed in this context in a type expression: Did you mean `tuple[int, str]`? |
| 25 | +aliases_type_statement.py:39:22: error[invalid-type-form] Tuple literals are not allowed in this context in a type expression |
| 26 | +aliases_type_statement.py:39:23: error[invalid-type-form] Tuple literals are not allowed in this context in a type expression: Did you mean `tuple[int, str]`? |
| 27 | +aliases_type_statement.py:40:22: error[invalid-type-form] List comprehensions are not allowed in type expressions |
| 28 | +aliases_type_statement.py:41:22: error[invalid-type-form] Dict literals are not allowed in type expressions |
| 29 | +aliases_type_statement.py:42:22: error[invalid-type-form] Function calls are not allowed in type expressions |
| 30 | +aliases_type_statement.py:43:22: error[invalid-type-form] Invalid subscript of object of type `list[<class 'int'>]` in type expression |
| 31 | +aliases_type_statement.py:43:28: error[invalid-type-form] Int literals are not allowed in this context in a type expression |
| 32 | +aliases_type_statement.py:44:22: error[invalid-type-form] `if` expressions are not allowed in type expressions |
| 33 | +aliases_type_statement.py:45:22: error[invalid-type-form] Variable of type `Literal[1]` is not allowed in a type expression |
| 34 | +aliases_type_statement.py:46:23: error[invalid-type-form] Boolean literals are not allowed in this context in a type expression |
| 35 | +aliases_type_statement.py:47:23: error[invalid-type-form] Int literals are not allowed in this context in a type expression |
| 36 | +aliases_type_statement.py:48:23: error[invalid-type-form] Boolean operations are not allowed in type expressions |
| 37 | +aliases_type_statement.py:49:23: error[fstring-type-annotation] Type expressions cannot use f-strings |
| 38 | +aliases_type_statement.py:62:23: error[unbound-type-variable] Type variable `V` is not bound to any outer generic context |
| 39 | +aliases_type_statement.py:67:17: error[unbound-type-variable] Type variable `T1` is not bound to any outer generic context |
| 40 | +aliases_type_statement.py:77:27: error[invalid-type-arguments] Type `str` is not assignable to upper bound `int` of type variable `S@RecursiveTypeAlias2` |
| 41 | +aliases_type_statement.py:79:32: error[invalid-type-arguments] Type `int` is not assignable to upper bound `str` of type variable `T@RecursiveTypeAlias2` |
| 42 | +aliases_type_statement.py:82:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias3` |
| 43 | +aliases_type_statement.py:88:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias6` |
| 44 | +aliases_type_statement.py:89:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias7` |
| 45 | +""" |
0 commit comments