Skip to content

Commit 41d15d5

Browse files
committed
Update zuban and run results
1 parent 0b6a395 commit 41d15d5

File tree

5 files changed

+15
-32
lines changed

5 files changed

+15
-32
lines changed

conformance/results/results.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ <h3>Python Type System Conformance Test Results</h3>
176176
</th>
177177
<th class='tc-header'><div class='tc-name'>pyright 1.1.408</div>
178178
</th>
179-
<th class='tc-header'><div class='tc-name'>zuban 0.6.1</div>
179+
<th class='tc-header'><div class='tc-name'>zuban 0.6.2</div>
180180
</th>
181181
<th class='tc-header'><div class='tc-name'>pyrefly 0.56.0</div>
182182
</th>
@@ -227,7 +227,7 @@ <h3>Python Type System Conformance Test Results</h3>
227227
<tr><th class="column col1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;typeforms_typeform</th>
228228
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not support assigning Union and GenericAlias objects to their runtime types.</p></span></div></th>
229229
<th class="column col2 not-conformant">Unsupported</th>
230-
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>TypeForm[Any] is not considered equivalent to itself.</p></span></div></th>
230+
<th class="column col2 conformant">Pass</th>
231231
<th class="column col2 not-conformant">Unsupported</th>
232232
<th class="column col2 not-conformant">Unsupported</th>
233233
</tr>
@@ -345,7 +345,7 @@ <h3>Python Type System Conformance Test Results</h3>
345345
<tr><th class="column col1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;generics_self_advanced</th>
346346
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not infer the type of an unannotated `self` parameter to be type `Self`.</p><p>Does not retain `Self` when calling method that returns `Self`.</p><p>Does not infer the type of an unannotated `cls` parameter to be type `type[Self]`.</p><p>Does not retain `Self` when accessing attribute through `type[Self]`.</p></span></div></th>
347347
<th class="column col2 conformant">Pass</th>
348-
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Doesn't allow accessing `Self` in a classmethod</p></span></div></th>
348+
<th class="column col2 conformant">Pass</th>
349349
<th class="column col2 conformant"><div class="hover-text">Pass*<span class="tooltip-text" id="bottom"><p>Treats attributes not initialized on the class as instance-only</p></span></div></th>
350350
<th class="column col2 conformant">Pass</th>
351351
</tr>
@@ -837,7 +837,7 @@ <h3>Python Type System Conformance Test Results</h3>
837837
<tr><th class="column col1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dataclasses_hash</th>
838838
<th class="column col2 not-conformant"><div class="hover-text">Unsupported<span class="tooltip-text" id="bottom"><p>Does not synthesize `__hash__ = None` as a class attribute for unhashable dataclasses.</p><p>Does not report when an unhashable dataclass has `__hash__` called directly on an instance.</p><p>Does not report when dataclass is not compatible with Hashable protocol.</p></span></div></th>
839839
<th class="column col2 conformant">Pass</th>
840-
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not synthesize a `__hash__ = None` class attribute for unhashable dataclasses.</p></span></div></th>
840+
<th class="column col2 conformant">Pass</th>
841841
<th class="column col2 conformant">Pass</th>
842842
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Understands the `Hashable` protocol as equivalent to `object`.</p></span></div></th>
843843
</tr>
Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
conformance_automated = "Fail"
2-
conformant = "Partial"
3-
notes = """
4-
Does not synthesize a `__hash__ = None` class attribute for unhashable dataclasses.
5-
"""
1+
conformance_automated = "Pass"
62
errors_diff = """
7-
Line 14: Unexpected errors ['dataclasses_hash.py:14: error: Expression is of type "Callable[[object], int]", not "None" [misc]']
8-
Line 36: Unexpected errors ['dataclasses_hash.py:36: error: Expression is of type "Callable[[object], int]", not "None" [misc]']
93
"""
104
output = """
11-
dataclasses_hash.py:14: error: Expression is of type "Callable[[object], int]", not "None" [misc]
12-
dataclasses_hash.py:17: error: "DC1" has no attribute "__hash__" [attr-defined]
5+
dataclasses_hash.py:17: error: "None" not callable [operator]
136
dataclasses_hash.py:18: error: Incompatible types in assignment (expression has type "DC1", variable has type "Hashable") [assignment]
14-
dataclasses_hash.py:36: error: Expression is of type "Callable[[object], int]", not "None" [misc]
15-
dataclasses_hash.py:39: error: "DC3" has no attribute "__hash__" [attr-defined]
7+
dataclasses_hash.py:18: note: Following member(s) of "DC1" have conflicts:
8+
dataclasses_hash.py:18: note: __hash__: expected "Callable[[], int]", got "None"
9+
dataclasses_hash.py:39: error: "None" not callable [operator]
1610
dataclasses_hash.py:40: error: Incompatible types in assignment (expression has type "DC3", variable has type "Hashable") [assignment]
11+
dataclasses_hash.py:40: note: Following member(s) of "DC3" have conflicts:
12+
dataclasses_hash.py:40: note: __hash__: expected "Callable[[], int]", got "None"
1713
"""
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
conformant = "Partial"
2-
notes = """
3-
Doesn't allow accessing `Self` in a classmethod
4-
"""
5-
conformance_automated = "Fail"
1+
conformance_automated = "Pass"
62
errors_diff = """
7-
Line 43: Unexpected errors ['generics_self_advanced.py:43: error: Access to generic instance variables via class is ambiguous [misc]']
8-
Line 44: Unexpected errors ['generics_self_advanced.py:44: error: Access to generic instance variables via class is ambiguous [misc]']
93
"""
104
output = """
11-
generics_self_advanced.py:43: error: Access to generic instance variables via class is ambiguous [misc]
12-
generics_self_advanced.py:44: error: Access to generic instance variables via class is ambiguous [misc]
5+
generics_self_advanced.py:45: error: Access to generic instance variables via class is ambiguous [misc]
136
"""

conformance/results/zuban/typeforms_typeform.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
conformant = "Partial"
2-
notes = """
3-
TypeForm[Any] is not considered equivalent to itself.
4-
"""
5-
conformance_automated = "Fail"
1+
conformance_automated = "Pass"
62
errors_diff = """
7-
Line 41: Unexpected errors ['typeforms_typeform.py:41: error: Expression is of type "typing.TypeForm(Any)", not "typing.TypeForm(Any)" [misc]']
83
"""
94
output = """
105
typeforms_typeform.py:23: error: Incompatible types in assignment (expression has type "typing.TypeForm(str | int)", variable has type "typing.TypeForm(str | None)") [assignment]
116
typeforms_typeform.py:24: error: Incompatible types in assignment (expression has type "type[list[str | None]]", variable has type "typing.TypeForm(str | None)") [assignment]
12-
typeforms_typeform.py:41: error: Expression is of type "typing.TypeForm(Any)", not "typing.TypeForm(Any)" [misc]
137
typeforms_typeform.py:59: error: Invalid syntax [syntax]
148
typeforms_typeform.py:67: error: Invalid type comment or annotation [valid-type]
159
typeforms_typeform.py:68: error: Syntax error in type annotation [valid-type]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "zuban 0.6.1"
1+
version = "zuban 0.6.2"

0 commit comments

Comments
 (0)