Skip to content

Commit 84aafe9

Browse files
committed
use ignore_errors for dataclasses_match_args.py
1 parent 8ce5fa9 commit 84aafe9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

conformance/results/results.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ <h3>Python Type System Conformance Test Results</h3>
850850
<th class="column col2 conformant">Pass</th>
851851
<th class="column col2 conformant">Pass</th>
852852
<th class="column col2 conformant">Pass</th>
853-
<th class="column col2 conformant"><div class="hover-text">Pass*<span class="tooltip-text" id="bottom"><p>Infers `__match_args__` as having type `tuple[()] | Unknown` for `__match_args__ = ()`</p></span></div></th>
853+
<th class="column col2 conformant">Pass</th>
854854
</tr>
855855
<tr><th class="column col1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dataclasses_order</th>
856856
<th class="column col2 conformant">Pass</th>

conformance/results/ty/dataclasses_match_args.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
conformance_automated = "Fail"
1+
conformance_automated = "Pass"
22
conformant = "Pass"
3-
notes = """
4-
Infers `__match_args__` as having type `tuple[()] | Unknown` for `__match_args__ = ()`"""
3+
ignore_errors = ["Type `Unknown | tuple[()]` does not match asserted type `tuple[()]`"]
54
errors_diff = """
6-
Line 49: Unexpected errors ['dataclasses_match_args.py:49:1: error[type-assertion-failure] Type `Unknown | tuple[()]` does not match asserted type `tuple[()]`']
75
"""
86
output = """
97
dataclasses_match_args.py:42:1: error[unresolved-attribute] Class `DC4` has no attribute `__match_args__`

0 commit comments

Comments
 (0)