|
| 1 | +conformant = "Unsupported" |
| 2 | +conformance_automated = "Fail" |
| 3 | +errors_diff = """ |
| 4 | +Line 33: Expected 1 errors |
| 5 | +Line 36: Expected 1 errors |
| 6 | +Line 18: Unexpected errors ['Expected a type form, got instance of `type[int] | UnionType` [not-a-type]'] |
| 7 | +Line 20: Unexpected errors ['assert_type(Sentinel, Unknown) failed [assert-type]', 'Expected a type form, got instance of `Sentinel` [not-a-type]'] |
| 8 | +Line 22: Unexpected errors ['assert_type(Unknown, int) failed [assert-type]'] |
| 9 | +Line 24: Unexpected errors ['Expected a type form, got instance of `type[int] | UnionType` [not-a-type]'] |
| 10 | +Line 26: Unexpected errors ['assert_type(Sentinel, Unknown) failed [assert-type]', 'Expected a type form, got instance of `Sentinel` [not-a-type]'] |
| 11 | +Line 28: Unexpected errors ['assert_type(Unknown, int) failed [assert-type]'] |
| 12 | +""" |
| 13 | +output = """ |
| 14 | +ERROR specialtypes_sentinels.py:15:20-27: Default `Sentinel` is not assignable to parameter `x` with type `int` [bad-function-definition] |
| 15 | +ERROR specialtypes_sentinels.py:18:14-27: Expected a type form, got instance of `type[int] | UnionType` [not-a-type] |
| 16 | +ERROR specialtypes_sentinels.py:20:20-32: assert_type(Sentinel, Unknown) failed [assert-type] |
| 17 | +ERROR specialtypes_sentinels.py:20:24-31: Expected a type form, got instance of `Sentinel` [not-a-type] |
| 18 | +ERROR specialtypes_sentinels.py:22:20-28: assert_type(Unknown, int) failed [assert-type] |
| 19 | +ERROR specialtypes_sentinels.py:24:14-32: Expected a type form, got instance of `type[int] | UnionType` [not-a-type] |
| 20 | +ERROR specialtypes_sentinels.py:26:20-37: assert_type(Sentinel, Unknown) failed [assert-type] |
| 21 | +ERROR specialtypes_sentinels.py:26:24-36: Expected a type form, got instance of `Sentinel` [not-a-type] |
| 22 | +ERROR specialtypes_sentinels.py:28:20-28: assert_type(Unknown, int) failed [assert-type] |
| 23 | +""" |
0 commit comments