Skip to content

Commit 268d0c4

Browse files
authored
Update ty results for v0.0.31 (#2261)
1 parent ba68164 commit 268d0c4

File tree

5 files changed

+24
-27
lines changed

5 files changed

+24
-27
lines changed

conformance/results/results.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ <h3>Python Type System Conformance Test Results</h3>
180180
</th>
181181
<th class='tc-header'><div class='tc-name'>pyrefly 0.60.0</div>
182182
</th>
183-
<th class='tc-header'><div class='tc-name'>ty 0.0.30</div>
183+
<th class='tc-header'><div class='tc-name'>ty 0.0.31</div>
184184
</th>
185185
</tr>
186186
<tr><th class="column" colspan="6">
@@ -1058,7 +1058,7 @@ <h3>Python Type System Conformance Test Results</h3>
10581058
<th class="column col2 conformant">Pass</th>
10591059
<th class="column col2 conformant">Pass</th>
10601060
<th class="column col2 conformant">Pass</th>
1061-
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Permits subclasses of `NamedTuple` classes to override read-only attributes in the class body of the subclass.</p></span></div></th>
1061+
<th class="column col2 conformant">Pass</th>
10621062
</tr>
10631063
<tr><th class="column col1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;namedtuples_define_functional</th>
10641064
<th class="column col2 conformant">Pass</th>
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
conformance_automated = "Fail"
2-
conformant = "Partial"
3-
notes = """
4-
Permits subclasses of `NamedTuple` classes to override read-only attributes in the class body of the subclass.
5-
"""
1+
conformance_automated = "Pass"
62
errors_diff = """
7-
Line 106: Expected 1 errors
83
"""
94
output = """
105
namedtuples_define_class.py:32:7: error[index-out-of-bounds] Index 3 is out of bounds for tuple `Point` with length 3
@@ -18,6 +13,7 @@ namedtuples_define_class.py:49:23: error[unknown-argument] Argument `other` does
1813
namedtuples_define_class.py:69:20: error[too-many-positional-arguments] Too many positional arguments: expected 3, got 4
1914
namedtuples_define_class.py:76:5: error[invalid-named-tuple] NamedTuple field `_y` cannot start with an underscore
2015
namedtuples_define_class.py:86:5: error[invalid-named-tuple] NamedTuple field without default value cannot follow field(s) with default value(s): Field `latitude` defined here without a default value
16+
namedtuples_define_class.py:106:5: error[invalid-named-tuple-override] Cannot override NamedTuple field `x` inherited from `Point`
2117
namedtuples_define_class.py:125:19: error[invalid-argument-type] Argument is incorrect: Expected `str`, found `float`
2218
namedtuples_define_class.py:132:24: error[invalid-named-tuple] NamedTuple class `Unit` cannot use multiple inheritance except with `Generic[]`
2319
"""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "ty 0.0.30"
1+
version = "ty 0.0.31"

conformance/tests/ty.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ redundant-final-classvar = "error"
88
assert-type-unspellable-subtype = "ignore"
99
invalid-enum-member-annotation = "error"
1010
mismatched-type-name = "error"
11+
invalid-named-tuple-override = "error"

conformance/uv.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)