|
1 | 1 | conformant = "Unsupported" |
2 | 2 | conformance_automated = "Fail" |
3 | 3 | errors_diff = """ |
4 | | -Line 44: Expected 1 errors |
5 | 4 | Line 46: Expected 1 errors |
| 5 | +Line 47: Expected 1 errors |
6 | 6 | Line 48: Expected 1 errors |
7 | | -Line 52: Expected 1 errors |
8 | | -Line 53: Expected 1 errors |
9 | | -Line 54: Expected 1 errors |
10 | | -Line 55: Expected 1 errors |
11 | | -Line 56: Expected 1 errors |
12 | | -Line 57: Expected 1 errors |
13 | | -Line 58: Expected 1 errors |
14 | | -Line 59: Expected 1 errors |
15 | | -Line 60: Expected 1 errors |
16 | | -Line 61: Expected 1 errors |
17 | | -Line 62: Expected 1 errors |
18 | | -Line 63: Expected 1 errors |
19 | | -Line 64: Expected 1 errors |
20 | | -Line 17: Unexpected errors ['Argument `tuple[type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type]'] |
21 | | -Line 18: Unexpected errors ['Argument `tuple[type[TypeVar[S]], type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type]'] |
22 | | -Line 19: Unexpected errors ['Argument `tuple[type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type]'] |
23 | | -Line 22: Unexpected errors ["Expected a type form, got instance of `Literal['GoodAlias5[S, TStr, P]']` [not-a-type]"] |
24 | | -Line 23: Unexpected errors ['Argument `tuple[type[TypeVar[S]], type[TypeVar[TStr]], type[ParamSpec[P]], type[TypeVarTuple[Ts]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type]'] |
25 | | -Line 35: Unexpected errors ['Expected a type form, got instance of `GenericAlias` [not-a-type]'] |
26 | | -Line 36: Unexpected errors ['Expected a type form, got instance of `GenericAlias` [not-a-type]'] |
27 | | -Line 37: Unexpected errors ['Expected a type form, got instance of `GenericAlias` [not-a-type]'] |
28 | | -Line 38: Unexpected errors ['Expected a type form, got instance of `GenericAlias` [not-a-type]'] |
29 | | -Line 39: Unexpected errors ['Expected a type form, got instance of `GenericAlias` [not-a-type]', 'Expected an iterable, got `type[tuple[int, str, int]]` [not-iterable]'] |
| 7 | +Line 66: Expected 1 errors |
30 | 8 | """ |
31 | 9 | output = """ |
32 | | -ERROR aliases_typealiastype.py:17:63-67: Argument `tuple[type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type] |
33 | | -ERROR aliases_typealiastype.py:18:73-79: Argument `tuple[type[TypeVar[S]], type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type] |
34 | | -ERROR aliases_typealiastype.py:19:81-85: Argument `tuple[type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type] |
35 | | -ERROR aliases_typealiastype.py:22:40-64: Expected a type form, got instance of `Literal['GoodAlias5[S, TStr, P]']` [not-a-type] |
36 | | -ERROR aliases_typealiastype.py:23:17-33: Argument `tuple[type[TypeVar[S]], type[TypeVar[TStr]], type[ParamSpec[P]], type[TypeVarTuple[Ts]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type] |
37 | 10 | ERROR aliases_typealiastype.py:32:7-30: Object of class `TypeAliasType` has no attribute `other_attrib` [missing-attribute] |
38 | | -ERROR aliases_typealiastype.py:35:5-20: Expected a type form, got instance of `GenericAlias` [not-a-type] |
39 | | -ERROR aliases_typealiastype.py:36:5-20: Expected a type form, got instance of `GenericAlias` [not-a-type] |
40 | | -ERROR aliases_typealiastype.py:37:5-40: Expected a type form, got instance of `GenericAlias` [not-a-type] |
41 | | -ERROR aliases_typealiastype.py:38:5-40: Expected a type form, got instance of `GenericAlias` [not-a-type] |
42 | | -ERROR aliases_typealiastype.py:39:5-60: Expected a type form, got instance of `GenericAlias` [not-a-type] |
43 | | -ERROR aliases_typealiastype.py:39:16-59: Expected an iterable, got `type[tuple[int, str, int]]` [not-iterable] |
44 | | -ERROR aliases_typealiastype.py:40:5-30: Expected a type form, got instance of `GenericAlias` [not-a-type] |
45 | | -ERROR aliases_typealiastype.py:43:61-65: Argument `tuple[type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type] |
46 | | -ERROR aliases_typealiastype.py:45:57-65: Argument `tuple[type[TypeVar[S]], type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type] |
47 | | -ERROR aliases_typealiastype.py:47:74-78: Argument `tuple[type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type] |
48 | | -ERROR aliases_typealiastype.py:66:47-57: `BadAlias21` is uninitialized [unbound-name] |
| 11 | +ERROR aliases_typealiastype.py:40:5-30: Type `int` is not assignable to upper bound `str` of type variable `TStr` [bad-specialization] |
| 12 | +ERROR aliases_typealiastype.py:43:40-47: Type variable `S` is out of scope for this `TypeAliasType` [type-alias-error] |
| 13 | +ERROR aliases_typealiastype.py:44:40-47: Type variable `S` is out of scope for this `TypeAliasType` [type-alias-error] |
| 14 | +ERROR aliases_typealiastype.py:45:45-65: Value for argument `type_params` must be a tuple literal [type-alias-error] |
| 15 | +ERROR aliases_typealiastype.py:52:40-80: function call cannot be used in annotations [invalid-annotation] |
| 16 | +ERROR aliases_typealiastype.py:53:40-50: list literal cannot be used in annotations [invalid-annotation] |
| 17 | +ERROR aliases_typealiastype.py:54:42-55: tuple literal cannot be used in annotations [invalid-annotation] |
| 18 | +ERROR aliases_typealiastype.py:55:42-65: list comprehension cannot be used in annotations [invalid-annotation] |
| 19 | +ERROR aliases_typealiastype.py:56:42-52: dict literal cannot be used in annotations [invalid-annotation] |
| 20 | +ERROR aliases_typealiastype.py:56:44-45: Could not find name `a` [unknown-name] |
| 21 | +ERROR aliases_typealiastype.py:56:49-50: Could not find name `b` [unknown-name] |
| 22 | +ERROR aliases_typealiastype.py:57:42-57: function call cannot be used in annotations [invalid-annotation] |
| 23 | +ERROR aliases_typealiastype.py:58:42-50: invalid subscript expression cannot be used in annotations [invalid-annotation] |
| 24 | +ERROR aliases_typealiastype.py:59:42-63: if expression cannot be used in annotations [invalid-annotation] |
| 25 | +ERROR aliases_typealiastype.py:60:42-46: Expected `BadAlias16` to be a type alias, got `Literal[3]` [type-alias-error] |
| 26 | +ERROR aliases_typealiastype.py:61:42-46: bool literal cannot be used in annotations [invalid-annotation] |
| 27 | +ERROR aliases_typealiastype.py:62:42-43: number literal cannot be used in annotations [invalid-annotation] |
| 28 | +ERROR aliases_typealiastype.py:63:42-53: boolean operation cannot be used in annotations [invalid-annotation] |
| 29 | +ERROR aliases_typealiastype.py:64:42-52: f-string cannot be used in annotations [invalid-annotation] |
49 | 30 | """ |
0 commit comments