@@ -4,24 +4,25 @@ Does not support precise type inference for slices over namedtuples.
44"""
55conformance_automated = " Fail"
66errors_diff = """
7- Line 29 : Unexpected errors ['./namedtuples_define_class.py:29 :12: tuple is not equivalent to tuple[int, int]']
8- Line 30 : Unexpected errors ['./namedtuples_define_class.py:30 :12: tuple is not equivalent to tuple[int, int, str]']
7+ Line 30 : Unexpected errors ['./namedtuples_define_class.py:30 :12: tuple is not equivalent to tuple[int, int]']
8+ Line 31 : Unexpected errors ['./namedtuples_define_class.py:31 :12: tuple is not equivalent to tuple[int, int, str]']
99"""
1010output = """
11- ./namedtuples_define_class.py:29:12: tuple is not equivalent to tuple[int, int]
12- ./namedtuples_define_class.py:30:12: tuple is not equivalent to tuple[int, int, str]
13- ./namedtuples_define_class.py:32:6: Tuple index out of range: Literal[3] [incompatible_call]
14- ./namedtuples_define_class.py:33:6: Tuple index out of range: Literal[-4] [incompatible_call]
15- ./namedtuples_define_class.py:44:5: Missing required argument 'y' [incompatible_call]
11+ ./namedtuples_define_class.py:30:12: tuple is not equivalent to tuple[int, int]
12+ ./namedtuples_define_class.py:31:12: tuple is not equivalent to tuple[int, int, str]
13+ ./namedtuples_define_class.py:33:6: Tuple index out of range: Literal[3] [incompatible_call]
14+ ./namedtuples_define_class.py:34:6: Tuple index out of range: Literal[-4] [incompatible_call]
1615./namedtuples_define_class.py:45:5: Missing required argument 'y' [incompatible_call]
17- ./namedtuples_define_class.py:46:14: Incompatible argument type for y: expected int but got Literal[''] [incompatible_argument]
18- ./namedtuples_define_class.py:47:23: Incompatible argument type for units: expected str but got Literal[3] [incompatible_argument]
19- ./namedtuples_define_class.py:48:5: Takes 3 positional arguments but 4 were given [incompatible_call]
20- ./namedtuples_define_class.py:49:6: Got an unexpected keyword argument 'other' [incompatible_call]
21- ./namedtuples_define_class.py:69:6: Takes 2 positional arguments but 3 were given [incompatible_call]
22- ./namedtuples_define_class.py:76:4: NamedTuple field names cannot start with an underscore [invalid_namedtuple]
23- ./namedtuples_define_class.py:86:4: NamedTuple fields without defaults cannot follow fields with defaults [invalid_namedtuple]
24- ./namedtuples_define_class.py:106:4: Field 'x' conflicts with base NamedTuple field [incompatible_override]
25- ./namedtuples_define_class.py:125:18: Incompatible argument type for value: expected str but got Literal[3.1] [incompatible_argument]
26- ./namedtuples_define_class.py:132:23: NamedTuple classes may only inherit from NamedTuple and Generic [invalid_base]
16+ ./namedtuples_define_class.py:46:5: Missing required argument 'y' [incompatible_call]
17+ ./namedtuples_define_class.py:47:14: Incompatible argument type for y: expected int but got Literal[''] [incompatible_argument]
18+ ./namedtuples_define_class.py:48:23: Incompatible argument type for units: expected str but got Literal[3] [incompatible_argument]
19+ ./namedtuples_define_class.py:49:5: Takes 3 positional arguments but 4 were given [incompatible_call]
20+ ./namedtuples_define_class.py:50:6: Got an unexpected keyword argument 'other' [incompatible_call]
21+ ./namedtuples_define_class.py:70:6: Takes 2 positional arguments but 3 were given [incompatible_call]
22+ ./namedtuples_define_class.py:77:4: NamedTuple field names cannot start with an underscore [invalid_namedtuple]
23+ ./namedtuples_define_class.py:87:4: NamedTuple fields without defaults cannot follow fields with defaults [invalid_namedtuple]
24+ ./namedtuples_define_class.py:107:4: Field 'x' conflicts with base NamedTuple field [incompatible_override]
25+ ./namedtuples_define_class.py:121:0: Takes 2 positional arguments but 3 were given [incompatible_call]
26+ ./namedtuples_define_class.py:140:18: Incompatible argument type for value: expected str but got Literal[3.1] [incompatible_argument]
27+ ./namedtuples_define_class.py:147:23: NamedTuple classes may only inherit from NamedTuple and Generic [invalid_base]
2728"""
0 commit comments