Skip to content

Commit 07d8af6

Browse files
committed
regenerate results
1 parent fc4ada7 commit 07d8af6

14 files changed

+92
-43
lines changed

conformance/results/mypy/namedtuples_define_class.toml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,19 @@ namedtuples_define_class.py:46: error: Argument 2 to "Point" has incompatible ty
1111
namedtuples_define_class.py:47: error: Argument "units" to "Point" has incompatible type "int"; expected "str" [arg-type]
1212
namedtuples_define_class.py:48: error: Too many arguments for "Point" [call-arg]
1313
namedtuples_define_class.py:49: error: Unexpected keyword argument "other" for "Point" [call-arg]
14-
namedtuples_define_class.py:59: error: Non-default NamedTuple fields cannot follow default fields [misc]
15-
namedtuples_define_class.py:98: error: Argument 2 to "Property" has incompatible type "float"; expected "str" [arg-type]
16-
namedtuples_define_class.py:105: error: NamedTuple should be a single base [misc]
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]
1721
"""
1822
conformance_automated = "Fail"
1923
errors_diff = """
20-
Line 79: Expected 1 errors
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]']
2129
"""

conformance/results/mypy/namedtuples_define_functional.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@ namedtuples_define_functional.py:43: error: Argument "x" to "Point6" has incompa
1111
namedtuples_define_functional.py:52: error: "namedtuple()" has duplicate field name "a" [misc]
1212
namedtuples_define_functional.py:53: error: "namedtuple()" field name "def" is a keyword [misc]
1313
namedtuples_define_functional.py:54: error: "namedtuple()" field name "def" is a keyword [misc]
14-
namedtuples_define_functional.py:66: error: Missing positional argument "a" in call to "NT5" [call-arg]
14+
namedtuples_define_functional.py:55: error: "namedtuple()" field name "_d" starts with an underscore [misc]
15+
namedtuples_define_functional.py:66: error: Name "NT5" already defined on line 57 [no-redef]
16+
namedtuples_define_functional.py:67: error: Missing positional argument "_1" in call to "NT5" [call-arg]
17+
namedtuples_define_functional.py:68: error: Too many arguments for "NT5" [call-arg]
18+
namedtuples_define_functional.py:69: error: Missing positional arguments "abc", "_1" in call to "NT5" [call-arg]
1519
"""
16-
conformance_automated = "Pass"
20+
conformance_automated = "Fail"
1721
errors_diff = """
22+
Line 66: Unexpected errors ['namedtuples_define_functional.py:66: error: Name "NT5" already defined on line 57 [no-redef]']
23+
Line 67: Unexpected errors ['namedtuples_define_functional.py:67: error: Missing positional argument "_1" in call to "NT5" [call-arg]']
24+
Line 68: Unexpected errors ['namedtuples_define_functional.py:68: error: Too many arguments for "NT5" [call-arg]']
1825
"""

conformance/results/mypy/version.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
version = "mypy 1.15.0"
2-
test_duration = 2.1
2+
test_duration = 2.0

conformance/results/pyre/namedtuples_define_class.toml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ namedtuples_define_class.py:46:14 Incompatible parameter type [6]: In call `Poin
1616
namedtuples_define_class.py:47:17 Incompatible parameter type [6]: In call `Point.__init__`, for argument `units`, expected `str` but got `int`.
1717
namedtuples_define_class.py:48:5 Too many arguments [19]: Call `Point.__init__` expects 3 positional arguments, 4 were provided.
1818
namedtuples_define_class.py:49:6 Unexpected keyword [28]: Unexpected keyword argument `other` to call `Point.__init__`.
19-
namedtuples_define_class.py:59:4 Missing named tuple default [74]: Named tuple field without default value may not be preceded by a field with default value.
20-
namedtuples_define_class.py:79:4 Invalid assignment [41]: Cannot reassign final attribute `x`.
21-
namedtuples_define_class.py:98:18 Incompatible parameter type [6]: In call `Property.__init__`, for 2nd positional argument, expected `str` but got `float`.
22-
namedtuples_define_class.py:105:23 Invalid inheritance [39]: If NamedTuple is included as a base class, the class may not extend anything else besides Generic.
19+
namedtuples_define_class.py:67:0 Unable to unpack [23]: Unable to unpack 3 values, 2 were expected.
20+
namedtuples_define_class.py:86:4 Missing named tuple default [74]: Named tuple field without default value may not be preceded by a field with default value.
21+
namedtuples_define_class.py:106:4 Invalid assignment [41]: Cannot reassign final attribute `x`.
22+
namedtuples_define_class.py:125:18 Incompatible parameter type [6]: In call `Property.__init__`, for 2nd positional argument, expected `str` but got `float`.
23+
namedtuples_define_class.py:132:23 Invalid inheritance [39]: If NamedTuple is included as a base class, the class may not extend anything else besides Generic.
2324
"""
24-
conformance_automated = "Pass"
25+
conformance_automated = "Fail"
2526
errors_diff = """
27+
Line 69: Expected 1 errors
28+
Line 76: Expected 1 errors
29+
Line 67: Unexpected errors ['namedtuples_define_class.py:67:0 Unable to unpack [23]: Unable to unpack 3 values, 2 were expected.']
2630
"""

conformance/results/pyre/namedtuples_define_functional.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ namedtuples_define_functional.py:42:17 Incompatible parameter type [6]: In call
1212
namedtuples_define_functional.py:43:14 Incompatible parameter type [6]: In call `Point6.__init__`, for argument `x`, expected `int` but got `float`.
1313
namedtuples_define_functional.py:52:0 Duplicate parameter [65]: Duplicate parameter name `a`.
1414
namedtuples_define_functional.py:52:0 Duplicate parameter [65]: Duplicate parameter name `a`.
15-
namedtuples_define_functional.py:66:0 Missing argument [20]: Call `NT5.__init__` expects argument `a`.
15+
namedtuples_define_functional.py:58:0 Unexpected keyword [28]: Unexpected keyword argument `abc` to call `NT5.__init__`.
16+
namedtuples_define_functional.py:60:0 Unexpected keyword [28]: Unexpected keyword argument `_1` to call `NT6.__init__`.
17+
namedtuples_define_functional.py:69:0 Missing argument [20]: Call `NT5.__init__` expects argument `a`.
1618
"""
17-
conformance_automated = "Pass"
19+
conformance_automated = "Fail"
1820
errors_diff = """
21+
Line 58: Unexpected errors ['namedtuples_define_functional.py:58:0 Unexpected keyword [28]: Unexpected keyword argument `abc` to call `NT5.__init__`.']
22+
Line 60: Unexpected errors ['namedtuples_define_functional.py:60:0 Unexpected keyword [28]: Unexpected keyword argument `_1` to call `NT6.__init__`.']
1923
"""

conformance/results/pyre/version.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
version = "pyre 0.9.23"
2-
test_duration = 3.9
2+
test_duration = 7.3

conformance/results/pyright/namedtuples_define_class.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ namedtuples_define_class.py:47:24 - error: Argument of type "Literal[3]" cannot
1010
  "Literal[3]" is not assignable to "str" (reportArgumentType)
1111
namedtuples_define_class.py:48:22 - error: Expected 3 positional arguments (reportCallIssue)
1212
namedtuples_define_class.py:49:23 - error: No parameter named "other" (reportCallIssue)
13-
namedtuples_define_class.py:59:5 - error: Fields without default values cannot appear after fields with default values (reportGeneralTypeIssues)
14-
namedtuples_define_class.py:79:5 - error: Cannot override "x" because parent class "Point" is a named tuple (reportIncompatibleVariableOverride)
15-
namedtuples_define_class.py:98:19 - error: Argument of type "float" cannot be assigned to parameter "value" of type "str" in function "__new__"
13+
namedtuples_define_class.py:69:20 - error: Expected 2 positional arguments (reportCallIssue)
14+
namedtuples_define_class.py:86:5 - error: Fields without default values cannot appear after fields with default values (reportGeneralTypeIssues)
15+
namedtuples_define_class.py:106:5 - error: Cannot override "x" because parent class "Point" is a named tuple (reportIncompatibleVariableOverride)
16+
namedtuples_define_class.py:125:19 - error: Argument of type "float" cannot be assigned to parameter "value" of type "str" in function "__new__"
1617
  "float" is not assignable to "str" (reportArgumentType)
17-
namedtuples_define_class.py:105:7 - error: Multiple inheritance with NamedTuple is not supported (reportGeneralTypeIssues)
18+
namedtuples_define_class.py:132:7 - error: Multiple inheritance with NamedTuple is not supported (reportGeneralTypeIssues)
1819
"""
19-
conformance_automated = "Pass"
20+
conformance_automated = "Fail"
2021
errors_diff = """
22+
Line 76: Expected 1 errors
2123
"""

conformance/results/pyright/namedtuples_define_functional.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ namedtuples_define_functional.py:43:17 - error: Argument of type "float" cannot
1515
namedtuples_define_functional.py:52:31 - error: Names within a named tuple must be unique (reportGeneralTypeIssues)
1616
namedtuples_define_functional.py:53:33 - error: Field names cannot be a keyword (reportGeneralTypeIssues)
1717
namedtuples_define_functional.py:54:33 - error: Field names cannot be a keyword (reportGeneralTypeIssues)
18-
namedtuples_define_functional.py:66:1 - error: Argument missing for parameter "a" (reportCallIssue)
18+
namedtuples_define_functional.py:60:1 - error: Argument missing for parameter "_d" (reportCallIssue)
19+
namedtuples_define_functional.py:60:13 - error: No parameter named "_1" (reportCallIssue)
20+
namedtuples_define_functional.py:69:1 - error: Argument missing for parameter "a" (reportCallIssue)
1921
"""
20-
conformance_automated = "Pass"
22+
conformance_automated = "Fail"
2123
errors_diff = """
24+
Line 60: Unexpected errors ['namedtuples_define_functional.py:60:1 - error: Argument missing for parameter "_d" (reportCallIssue)', 'namedtuples_define_functional.py:60:13 - error: No parameter named "_1" (reportCallIssue)']
2225
"""
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "pyright 1.1.398"
2-
test_duration = 2.3
1+
version = "pyright 1.1.399"
2+
test_duration = 1.5

conformance/results/pytype/namedtuples_define_class.toml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,21 @@ namedtuples_define_class.py:49:7: \u001b[1m\u001b[31merror\u001b[39m\u001b[0m: i
5959
p10 = Point(1, 2, "", other="") # E
6060
\u001b[1m\u001b[31m~~~~~~~~~~~~~~~~~~~~~~~~~\u001b[39m\u001b[0m
6161
62-
namedtuples_define_class.py:95:1: \u001b[1m\u001b[31merror\u001b[39m\u001b[0m: in <module>: Any [assert-type]
62+
namedtuples_define_class.py:69:7: \u001b[1m\u001b[31merror\u001b[39m\u001b[0m: in <module>: Function Point2.__new__ expects 3 arg(s), got 4 [wrong-arg-count]
63+
64+
p12 = Point2(1, 2, "") # E
65+
\u001b[1m\u001b[31m~~~~~~~~~~~~~~~~\u001b[39m\u001b[0m
66+
67+
namedtuples_define_class.py:74:1: \u001b[1m\u001b[31merror\u001b[39m\u001b[0m: in <module>: collections.namedtuple argument '_y' is not a valid typename or field name. [invalid-namedtuple-arg]
68+
69+
class Point3(NamedTuple):
70+
\u001b[1m\u001b[31m~~~~~~~~~~~~~~~~~~~~~~~~~\u001b[39m\u001b[0m
71+
x: int
72+
\u001b[1m\u001b[31m~~~~~~~~~~\u001b[39m\u001b[0m
73+
_y: int # E: illegal field name
74+
\u001b[1m\u001b[31m~~~~~~~~~~~\u001b[39m\u001b[0m
75+
76+
namedtuples_define_class.py:122:1: \u001b[1m\u001b[31merror\u001b[39m\u001b[0m: in <module>: Any [assert-type]
6377
6478
assert_type(pr1[1], float)
6579
\u001b[1m\u001b[31m~~~~~~~~~~~~~~~~~~~~~~~~~~\u001b[39m\u001b[0m
@@ -69,13 +83,15 @@ conformance_automated = "Fail"
6983
errors_diff = """
7084
Line 32: Expected 1 errors
7185
Line 33: Expected 1 errors
72-
Line 59: Expected 1 errors
73-
Line 79: Expected 1 errors
74-
Line 98: Expected 1 errors
75-
Line 105: Expected 1 errors
86+
Line 76: Expected 1 errors
87+
Line 86: Expected 1 errors
88+
Line 106: Expected 1 errors
89+
Line 125: Expected 1 errors
90+
Line 132: Expected 1 errors
7691
Line 27: Unexpected errors ['namedtuples_define_class.py:27:1: \\x1b[1m\\x1b[31merror\\x1b[39m\\x1b[0m: in <module>: Union[int, str] [assert-type]']
7792
Line 28: Unexpected errors ['namedtuples_define_class.py:28:1: \\x1b[1m\\x1b[31merror\\x1b[39m\\x1b[0m: in <module>: Union[int, str] [assert-type]']
7893
Line 29: Unexpected errors ['namedtuples_define_class.py:29:1: \\x1b[1m\\x1b[31merror\\x1b[39m\\x1b[0m: in <module>: tuple[Union[int, str], ...] [assert-type]']
7994
Line 30: Unexpected errors ['namedtuples_define_class.py:30:1: \\x1b[1m\\x1b[31merror\\x1b[39m\\x1b[0m: in <module>: tuple[Union[int, str], ...] [assert-type]']
80-
Line 95: Unexpected errors ['namedtuples_define_class.py:95:1: \\x1b[1m\\x1b[31merror\\x1b[39m\\x1b[0m: in <module>: Any [assert-type]']
95+
Line 74: Unexpected errors ["namedtuples_define_class.py:74:1: \\x1b[1m\\x1b[31merror\\x1b[39m\\x1b[0m: in <module>: collections.namedtuple argument '_y' is not a valid typename or field name. [invalid-namedtuple-arg]"]
96+
Line 122: Unexpected errors ['namedtuples_define_class.py:122:1: \\x1b[1m\\x1b[31merror\\x1b[39m\\x1b[0m: in <module>: Any [assert-type]']
8197
"""

0 commit comments

Comments
 (0)