|
| 1 | +conformance_automated = "Fail" |
| 2 | +conformant = "Partial" |
| 3 | +notes = """ |
| 4 | +Does not reject variables with `Any` or `Unknown` types when used as implicit type aliases. |
| 5 | +Does not support `Concatenate` in type aliases. |
| 6 | +""" |
| 7 | +errors_diff = """ |
| 8 | +Line 106: Expected 1 errors |
| 9 | +Line 111: Expected 1 errors |
| 10 | +Line 112: Expected 1 errors |
| 11 | +Line 113: Expected 1 errors |
| 12 | +Line 117: Expected 1 errors |
| 13 | +Line 68: Unexpected errors ['aliases_implicit.py:68:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `(int, str, str, /) -> None`'] |
| 14 | +""" |
| 15 | +output = """ |
| 16 | +aliases_implicit.py:68:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `(int, str, str, /) -> None` |
| 17 | +aliases_implicit.py:76:9: error[not-subscriptable] Cannot subscript non-generic type `<types.UnionType special-form 'int | None'>` |
| 18 | +aliases_implicit.py:77:9: error[not-subscriptable] Cannot subscript non-generic type `<class 'list[int | None]'>` |
| 19 | +aliases_implicit.py:78:29: error[invalid-type-arguments] Too many type arguments: expected 1, got 2 |
| 20 | +aliases_implicit.py:79:29: error[invalid-type-arguments] Too many type arguments: expected 1, got 2 |
| 21 | +aliases_implicit.py:80:24: error[invalid-type-arguments] Type argument for `ParamSpec` must be either a list of types, `ParamSpec`, `Concatenate`, or `...` |
| 22 | +aliases_implicit.py:81:25: error[invalid-type-arguments] Type `str` is not assignable to upper bound `int | float` of type variable `TFloat@GoodTypeAlias12` |
| 23 | +aliases_implicit.py:107:9: error[invalid-type-form] Variable of type `list[<class 'int'> | <class 'str'>]` is not allowed in a type expression |
| 24 | +aliases_implicit.py:108:9: error[invalid-type-form] Variable of type `tuple[tuple[<class 'int'>, <class 'str'>]]` is not allowed in a type expression |
| 25 | +aliases_implicit.py:109:9: error[invalid-type-form] Variable of type `list[<class 'int'>]` is not allowed in a type expression |
| 26 | +aliases_implicit.py:110:9: error[invalid-type-form] Variable of type `dict[str, str]` is not allowed in a type expression |
| 27 | +aliases_implicit.py:114:9: error[invalid-type-form] Variable of type `Literal[3]` is not allowed in a type expression |
| 28 | +aliases_implicit.py:115:10: error[invalid-type-form] Variable of type `Literal[True]` is not allowed in a type expression |
| 29 | +aliases_implicit.py:116:10: error[invalid-type-form] Variable of type `Literal[1]` is not allowed in a type expression |
| 30 | +aliases_implicit.py:118:10: error[invalid-type-form] Variable of type `Literal["int"]` is not allowed in a type expression |
| 31 | +aliases_implicit.py:119:10: error[invalid-type-form] Variable of type `Literal["int | str"]` is not allowed in a type expression |
| 32 | +aliases_implicit.py:133:6: error[call-non-callable] Object of type `UnionType` is not callable |
| 33 | +aliases_implicit.py:135:5: error[not-subscriptable] Cannot subscript non-generic type `<types.UnionType special-form 'list[Unknown] | set[Unknown]'>` |
| 34 | +""" |
0 commit comments