|
1 | 1 | conformant = "Partial" |
2 | 2 | notes = """ |
3 | 3 | Does not reject override of named tuple attribute in child class. |
| 4 | +Does not support version-conditional fields. |
4 | 5 | """ |
5 | 6 | output = """ |
6 | | -namedtuples_define_class.py:32: error: Tuple index out of range [misc] |
7 | 7 | namedtuples_define_class.py:33: error: Tuple index out of range [misc] |
8 | | -namedtuples_define_class.py:44: error: Missing positional argument "y" in call to "Point" [call-arg] |
| 8 | +namedtuples_define_class.py:34: error: Tuple index out of range [misc] |
9 | 9 | namedtuples_define_class.py:45: error: Missing positional argument "y" in call to "Point" [call-arg] |
10 | | -namedtuples_define_class.py:46: error: Argument 2 to "Point" has incompatible type "str"; expected "int" [arg-type] |
11 | | -namedtuples_define_class.py:47: error: Argument "units" to "Point" has incompatible type "int"; expected "str" [arg-type] |
12 | | -namedtuples_define_class.py:48: error: Too many arguments for "Point" [call-arg] |
13 | | -namedtuples_define_class.py:49: error: Unexpected keyword argument "other" for "Point" [call-arg] |
14 | | -namedtuples_define_class.py:59: error: Invalid statement in NamedTuple definition; expected "field_name: field_type [= default]" [misc] |
15 | | -namedtuples_define_class.py:65: error: Missing positional argument "units" in call to "Point2" [call-arg] |
16 | | -namedtuples_define_class.py:67: error: Too many values to unpack (2 expected, 3 provided) [misc] |
17 | | -namedtuples_define_class.py:76: error: NamedTuple field name cannot start with an underscore: _y [misc] |
18 | | -namedtuples_define_class.py:86: error: Non-default NamedTuple fields cannot follow default fields [misc] |
19 | | -namedtuples_define_class.py:125: error: Argument 2 to "Property" has incompatible type "float"; expected "str" [arg-type] |
20 | | -namedtuples_define_class.py:132: error: NamedTuple should be a single base [misc] |
| 10 | +namedtuples_define_class.py:46: error: Missing positional argument "y" in call to "Point" [call-arg] |
| 11 | +namedtuples_define_class.py:47: error: Argument 2 to "Point" has incompatible type "str"; expected "int" [arg-type] |
| 12 | +namedtuples_define_class.py:48: error: Argument "units" to "Point" has incompatible type "int"; expected "str" [arg-type] |
| 13 | +namedtuples_define_class.py:49: error: Too many arguments for "Point" [call-arg] |
| 14 | +namedtuples_define_class.py:50: error: Unexpected keyword argument "other" for "Point" [call-arg] |
| 15 | +namedtuples_define_class.py:60: error: Invalid statement in NamedTuple definition; expected "field_name: field_type [= default]" [misc] |
| 16 | +namedtuples_define_class.py:66: error: Missing positional argument "units" in call to "Point2" [call-arg] |
| 17 | +namedtuples_define_class.py:68: error: Too many values to unpack (2 expected, 3 provided) [misc] |
| 18 | +namedtuples_define_class.py:77: error: NamedTuple field name cannot start with an underscore: _y [misc] |
| 19 | +namedtuples_define_class.py:87: error: Non-default NamedTuple fields cannot follow default fields [misc] |
| 20 | +namedtuples_define_class.py:114: error: Invalid statement in NamedTuple definition; expected "field_name: field_type [= default]" [misc] |
| 21 | +namedtuples_define_class.py:118: error: Too many arguments for "ConditionalField" [call-arg] |
| 22 | +namedtuples_define_class.py:137: error: Argument 2 to "Property" has incompatible type "float"; expected "str" [arg-type] |
| 23 | +namedtuples_define_class.py:144: error: NamedTuple should be a single base [misc] |
21 | 24 | """ |
22 | 25 | conformance_automated = "Fail" |
23 | 26 | errors_diff = """ |
24 | | -Line 69: Expected 1 errors |
25 | | -Line 106: Expected 1 errors |
26 | | -Line 59: Unexpected errors ['namedtuples_define_class.py:59: error: Invalid statement in NamedTuple definition; expected "field_name: field_type [= default]" [misc]'] |
27 | | -Line 65: Unexpected errors ['namedtuples_define_class.py:65: error: Missing positional argument "units" in call to "Point2" [call-arg]'] |
28 | | -Line 67: Unexpected errors ['namedtuples_define_class.py:67: error: Too many values to unpack (2 expected, 3 provided) [misc]'] |
| 27 | +Line 70: Expected 1 errors |
| 28 | +Line 107: Expected 1 errors |
| 29 | +Line 60: Unexpected errors ['namedtuples_define_class.py:60: error: Invalid statement in NamedTuple definition; expected "field_name: field_type [= default]" [misc]'] |
| 30 | +Line 66: Unexpected errors ['namedtuples_define_class.py:66: error: Missing positional argument "units" in call to "Point2" [call-arg]'] |
| 31 | +Line 68: Unexpected errors ['namedtuples_define_class.py:68: error: Too many values to unpack (2 expected, 3 provided) [misc]'] |
| 32 | +Line 114: Unexpected errors ['namedtuples_define_class.py:114: error: Invalid statement in NamedTuple definition; expected "field_name: field_type [= default]" [misc]'] |
| 33 | +Line 118: Unexpected errors ['namedtuples_define_class.py:118: error: Too many arguments for "ConditionalField" [call-arg]'] |
29 | 34 | """ |
0 commit comments