Skip to content

Commit f516a43

Browse files
authored
Updated conformance results for pyright 1.1.385. (#1867)
* Fixes regression caught by constructors_call_type test * Fixes regression caught by generics_typevartuple_args test
1 parent f86459c commit f516a43

File tree

4 files changed

+13
-17
lines changed

4 files changed

+13
-17
lines changed
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
conformant = "Partial"
2-
notes = """
3-
Fails to report error when passing incorrect arguments for metaclass __call__ method.
4-
"""
1+
conformant = "Pass"
52
errors_diff = """
6-
Line 30: Expected 1 errors
7-
Line 72: Expected 1 errors
83
"""
94
output = """
5+
constructors_call_type.py:30:5 - error: Arguments missing for parameters "x", "y" (reportCallIssue)
106
constructors_call_type.py:40:5 - error: Arguments missing for parameters "x", "y" (reportCallIssue)
117
constructors_call_type.py:50:5 - error: Arguments missing for parameters "x", "y" (reportCallIssue)
128
constructors_call_type.py:59:9 - error: Expected 0 positional arguments (reportCallIssue)
139
constructors_call_type.py:64:9 - error: Expected 0 positional arguments (reportCallIssue)
10+
constructors_call_type.py:72:5 - error: Arguments missing for parameters "x", "y" (reportCallIssue)
1411
constructors_call_type.py:81:5 - error: Argument missing for parameter "y" (reportCallIssue)
1512
constructors_call_type.py:82:12 - error: Argument of type "Literal[2]" cannot be assigned to parameter "y" of type "str" in function "__new__"
1613
  "Literal[2]" is not assignable to "str" (reportArgumentType)
1714
"""
18-
conformance_automated = "Fail"
15+
conformance_automated = "Pass"

conformance/results/pyright/generics_typevartuple_args.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@ generics_typevartuple_args.py:48:10 - error: Argument of type "Literal['2']" can
88
  "Literal['2']" is not assignable to "int" (reportArgumentType)
99
generics_typevartuple_args.py:57:10 - error: Argument of type "Literal[1]" cannot be assigned to parameter of type "str" in function "func2"
1010
  "Literal[1]" is not assignable to "str" (reportArgumentType)
11-
generics_typevartuple_args.py:59:7 - error: Argument of type "Literal['']" cannot be assigned to parameter of type "int" in function "func2"
12-
  "Literal['']" is not assignable to "int" (reportArgumentType)
11+
generics_typevartuple_args.py:58:1 - error: Argument missing for parameter "args[2]" (reportCallIssue)
12+
generics_typevartuple_args.py:59:1 - error: Argument missing for parameter "args[2]" (reportCallIssue)
13+
generics_typevartuple_args.py:67:1 - error: Argument missing for parameter "args[1]" (reportCallIssue)
1314
generics_typevartuple_args.py:75:13 - error: Argument of type "tuple[Literal[1], Literal[2]]" cannot be assigned to parameter "args" of type "tuple[*Ts@func4]" in function "func4"
1415
  "tuple[Literal[1], Literal[2]]" is not assignable to "tuple[int]"
1516
    Tuple size mismatch; expected 1 but received 2 (reportArgumentType)
1617
generics_typevartuple_args.py:76:14 - error: Argument of type "tuple[Literal['1']]" cannot be assigned to parameter "args" of type "tuple[*Ts@func4]" in function "func4"
1718
  "Literal['1']" is not assignable to "int" (reportArgumentType)
1819
"""
19-
conformance_automated = "Fail"
20+
conformance_automated = "Pass"
2021
errors_diff = """
21-
Line 58: Expected 1 errors
22-
Line 67: Expected 1 errors
2322
"""
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "pyright 1.1.384"
2-
test_duration = 1.3
1+
version = "pyright 1.1.385"
2+
test_duration = 1.2

conformance/results/results.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ <h3>Python Type System Conformance Test Results</h3>
161161
<th class='tc-header'><div class='tc-name'>mypy 1.12.0</div>
162162
<div class='tc-time'>1.7sec</div>
163163
</th>
164-
<th class='tc-header'><div class='tc-name'>pyright 1.1.384</div>
165-
<div class='tc-time'>1.3sec</div>
164+
<th class='tc-header'><div class='tc-name'>pyright 1.1.385</div>
165+
<div class='tc-time'>1.2sec</div>
166166
</th>
167167
<th class='tc-header'><div class='tc-name'>pyre 0.9.22</div>
168168
<div class='tc-time'>4.6sec</div>
@@ -647,7 +647,7 @@ <h3>Python Type System Conformance Test Results</h3>
647647
</tr>
648648
<tr><th class="column col1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;constructors_call_type</th>
649649
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not validate call to custom metaclass __call__ method through type[T].</p></span></div></th>
650-
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Fails to report error when passing incorrect arguments for metaclass __call__ method.</p></span></div></th>
650+
<th class="column col2 conformant">Pass</th>
651651
<th class="column col2 conformant">Pass</th>
652652
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not validate call to custom metaclass __call__ method through type[T].</p></span></div></th>
653653
</tr>

0 commit comments

Comments
 (0)