10000 update results for new pyright version (#2035) · python/typing@3fc17d1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3fc17d1

Browse files
update results for new pyright version (#2035)
1 parent b806c04 commit 3fc17d1

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

conformance/results/mypy/version.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "mypy 1.16.0"
2-
test_duration = 1.7
1+
version = "mypy 1.16.1"
2+
test_duration = 2.2

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 = 6.6
2+
test_duration = 10.7
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
conformant = "Partial"
2-
notes = """
3-
`NewType`s are considered classes, not functions.
4-
"""
1+
conformant = "Pass"
52
output = """
63
aliases_newtype.py:11:8 - error: Argument of type "Literal['user']" cannot be assigned to parameter "_x" of type "int" in function "__init__"
74
  "Literal['user']" is not assignable to "int" (reportArgumentType)
85
aliases_newtype.py:12:14 - error: Type "Literal[42]" is not assignable to declared type "UserId"
96
  "Literal[42]" is not assignable to "UserId" (reportAssignmentType)
7+
aliases_newtype.py:18:11 - error: Type "type[UserId]" is not assignable to declared type "type"
8+
  "FunctionType" is not assignable to "type" (reportAssignmentType)
9+
aliases_newtype.py:23:16 - error: Argument of type "type[UserId]" cannot be assigned to parameter "class_or_tuple" of type "_ClassInfo" in function "isinstance"
10+
  Type "FunctionType" is not assignable to type "_ClassInfo"
11+
    "FunctionType" is not assignable to "type"
12+
    "FunctionType" is not assignable to "UnionType"
13+
    "FunctionType" is not assignable to "tuple[_ClassInfo, ...]" (reportArgumentType)
1014
aliases_newtype.py:23:16 - error: Second argument to "isinstance" must be a class or tuple of classes
1115
  Class created with NewType cannot be used with instance and class checks (reportArgumentType)
1216
aliases_newtype.py:26:21 - error: Base class "UserId" is marked final and cannot be subclassed (reportGeneralTypeIssues)
@@ -20,7 +24,6 @@ aliases_newtype.py:61:38 - error: NewType cannot be used with structural type (a
2024
aliases_newtype.py:63:15 - error: NewType requires two positional arguments (reportCallIssue)
2125
aliases_newtype.py:65:38 - error: The second argument to NewType must be a known class, not Any or Unknown (reportGeneralTypeIssues)
2226
"""
23-
conformance_automated = "Fail"
27+
conformance_automated = "Pass"
2428
errors_diff = """
25-
Line 18: Expected 1 errors
2629
"""
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
conformant = "Partial"
2-
notes = """
3-
Missing error regarding `type(instance).generic_attribute`.
4-
"""
1+
conformant = "Pass"
52
output = """
63
generics_type_erasure.py:38:16 - error: Argument of type "Literal['']" cannot be assigned to parameter "label" of type "int | None" in function "__init__"
74
  Type "Literal['']" is not assignable to type "int | None"
@@ -15,8 +12,8 @@ generics_type_erasure.py:42:11 - error: Access to generic instance variable thro
1512
generics_type_erasure.py:43:11 - error: Access to generic instance variable through class is ambiguous (reportGeneralTypeIssues)
1613
generics_type_erasure.py:44:6 - error: Access to generic instance variable through class is ambiguous (reportGeneralTypeIssues)
1714
generics_type_erasure.py:45:6 - error: Access to generic instance variable through class is ambiguous (reportGeneralTypeIssues)
15+
generics_type_erasure.py:46:10 - error: Access to generic instance variable through class is ambiguous (reportGeneralTypeIssues)
1816
"""
19-
conformance_automated = "Fail"
17+
conformance_automated = "Pass"
2018
errors_diff = """
21-
Line 46: Expected 1 errors
2219
"""

conformance/results/pyright/protocols_definition.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protocols_definition.py:160:22 - error: Type "Concrete3_Bad5" is not assignable
4646
protocols_definition.py:218:22 - error: Type "Concrete4_Bad1" is not assignable to declared type "Template4"
4747
  "Concrete4_Bad1" is incompatible with protocol "Template4"
4848
    "val1" is an incompatible type
49-
      "FunctionType" is not assignable to "Sequence[float]" (reportAssignmentType)
49+
      "MethodType" is not assignable to "Sequence[float]" (reportAssignmentType)
5050
protocols_definition.py:219:22 - error: Type "Concrete4_Bad2" is not assignable to declared type "Template4"
5151
  "Concrete4_Bad2" is incompatible with protocol "Template4"
5252
    "val1" is not present (reportAssignmentType)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "pyright 1.1.401"
2-
test_duration = 1.0
1+
version = "pyright 1.1.402"
2+
test_duration = 1.8

conformance/results/results.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,14 @@ <h3>Python Type System Conformance Test Results</h3>
158158
</header>
159159
<div class="table_container"><table><tbody>
160160
<tr><th class="col1">&nbsp;</th>
161-
<th class='tc-header'><div class='tc-name'>mypy 1.16.0</div>
162-
<div class='tc-time'>1.7sec</div>
161+
<th class='tc-header'><div class='tc-name'>mypy 1.16.1</div>
162+
<div class='tc-time'>2.2sec</div>
163163
</th>
164-
<th class='tc-header'><div class='tc-name'>pyright 1.1.401</div>
165-
<div class='tc-time'>1.0sec</div>
164+
<th class='tc-header'><div class='tc-name'>pyright 1.1.402</div>
165+
<div class='tc-time'>1.8sec</div>
166166
</th>
167167
<th class='tc-header'><div class='tc-name'>pyre 0.9.23</div>
168-
<div class='tc-time'>6.6sec</div>
168+
<div class='tc-time'>10.7sec</div>
169169
</th>
170170
</tr>
171171
<tr><th class="column" colspan="4">

0 commit comments

Comments
 (0)
0