Skip to content

Commit 94514b1

Browse files
authored
update conformance results for ty==0.0.40 (#2295)
1 parent a4d2353 commit 94514b1

7 files changed

Lines changed: 61 additions & 128 deletions

File tree

conformance/results/results.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ <h3>Python Type System Conformance Test Results</h3>
182182
</th>
183183
<th class='tc-header'><div class='tc-name'>pycroscope 0.4.0</div>
184184
</th>
185-
<th class='tc-header'><div class='tc-name'>ty 0.0.38</div>
185+
<th class='tc-header'><div class='tc-name'>ty 0.0.40</div>
186186
</th>
187187
</tr>
188188
<tr><th class="column" colspan="7">
@@ -237,7 +237,7 @@ <h3>Python Type System Conformance Test Results</h3>
237237
<th class="column col2 conformant">Pass</th>
238238
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not allow assigning a TypeForm to types.GenericAlias.</p><p>Does not allow passing a forward reference to a function accepting a TypeForm.</p></span></div></th>
239239
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Fails to reject various weird annotations</p></span></div></th>
240-
<th class="column col2 not-conformant">Unsupported</th>
240+
<th class="column col2 conformant">Pass</th>
241241
</tr>
242242
<tr><th class="column" colspan="7">
243243
<a class="test_group" href="https://typing.readthedocs.io/en/latest/spec/special-types.html">Special types in annotations</a>
@@ -515,7 +515,7 @@ <h3>Python Type System Conformance Test Results</h3>
515515
<th class="column col2 conformant">Pass</th>
516516
<th class="column col2 conformant">Pass</th>
517517
<th class="column col2 conformant">Pass</th>
518-
<th class="column col2 not-conformant">Unsupported</th>
518+
<th class="column col2 conformant">Pass</th>
519519
</tr>
520520
<tr><th class="column col1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;generics_variance_inference</th>
521521
<th class="column col2 conformant">Pass</th>
@@ -628,7 +628,7 @@ <h3>Python Type System Conformance Test Results</h3>
628628
<th class="column col2 conformant">Pass</th>
629629
<th class="column col2 conformant">Pass</th>
630630
<th class="column col2 conformant">Pass</th>
631-
<th class="column col2 not-conformant">Unsupported</th>
631+
<th class="column col2 conformant">Pass</th>
632632
</tr>
633633
<tr><th class="column" colspan="7">
634634
<a class="test_group" href="https://typing.readthedocs.io/en/latest/spec/literal.html">Literals</a>
@@ -993,7 +993,7 @@ <h3>Python Type System Conformance Test Results</h3>
993993
<th class="column col2 conformant">Pass</th>
994994
<th class="column col2 conformant">Pass</th>
995995
<th class="column col2 conformant">Pass</th>
996-
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not pass all assertions in the test file, due to limitations in ty's generics solver.</p><p></p><p>Incorrectly rejects a converter of `dict` combined with a default of `()`.</p><p>Incorrectly rejects passing a sequence of two-element string tuples to the `dict` constructor.</p></span></div></th>
996+
<th class="column col2 conformant">Pass</th>
997997
</tr>
998998
<tr><th class="column col1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dataclasses_transform_field</th>
999999
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not properly handle field constructor that has default value for `kw_only` or `init` parameter.</p></span></div></th>
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
conformance_automated = "Fail"
2-
conformant = "Unsupported"
1+
conformance_automated = "Pass"
32
errors_diff = """
4-
Line 24: Expected 1 errors
5-
Line 28: Expected 1 errors
6-
Line 32: Expected 1 errors
7-
Line 44: Expected 1 errors
83
"""
94
output = """
5+
aliases_variance.py:24:16: error[invalid-generic-class] Variance of type variable `T_co` is incompatible with base class `ClassA`
6+
aliases_variance.py:28:16: error[invalid-generic-class] Variance of type variable `T_co` is incompatible with base class `ClassA`
7+
aliases_variance.py:32:16: error[invalid-generic-class] Variance of type variable `T_co` is incompatible with base class `ClassA`
8+
aliases_variance.py:44:16: error[invalid-generic-class] Variance of type variable `T_contra` is incompatible with base class `ClassB`
109
"""
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,14 @@
1-
conformance_automated = "Fail"
2-
conformant = "Partial"
3-
notes = """
4-
Does not pass all assertions in the test file, due to limitations in ty's generics solver.
5-
6-
Incorrectly rejects a converter of `dict` combined with a default of `()`.
7-
Incorrectly rejects passing a sequence of two-element string tuples to the `dict` constructor.
8-
"""
1+
conformance_automated = "Pass"
92
errors_diff = """
10-
Line 104: Unexpected errors ['dataclasses_transform_converter.py:104:30: error[invalid-assignment] Object of type `dict[str, str] | dict[bytes, bytes]` is not assignable to `dict[str, str]`', "dataclasses_transform_converter.py:104:42: error[invalid-argument-type] Argument to function `model_field` is incorrect: Expected `(Iterable[list[str]] | Iterable[list[bytes]], /) -> dict[str, str] | dict[bytes, bytes]`, found `<class 'dict'>`"]
11-
Line 121: Unexpected errors ['dataclasses_transform_converter.py:121:40: error[invalid-argument-type] Argument is incorrect: Expected `dict[str, str]`, found `tuple[tuple[Literal["a"], Literal["1"]], tuple[Literal["b"], Literal["2"]]]`']
123
"""
134
output = """
145
dataclasses_transform_converter.py:48:31: error[invalid-argument-type] Argument to function `model_field` is incorrect: Expected `(Unknown, /) -> Unknown`, found `def bad_converter1() -> int`
156
dataclasses_transform_converter.py:49:31: error[invalid-argument-type] Argument to function `model_field` is incorrect: Expected `(Unknown, /) -> Unknown`, found `def bad_converter2(*, x: int) -> int`
16-
dataclasses_transform_converter.py:104:30: error[invalid-assignment] Object of type `dict[str, str] | dict[bytes, bytes]` is not assignable to `dict[str, str]`
17-
dataclasses_transform_converter.py:104:42: error[invalid-argument-type] Argument to function `model_field` is incorrect: Expected `(Iterable[list[str]] | Iterable[list[bytes]], /) -> dict[str, str] | dict[bytes, bytes]`, found `<class 'dict'>`
187
dataclasses_transform_converter.py:107:5: error[invalid-argument-type] Argument is incorrect: Expected `str`, found `Literal[1]`
198
dataclasses_transform_converter.py:108:23: error[invalid-argument-type] Argument is incorrect: Expected `str | bytes`, found `Literal[1]`
209
dataclasses_transform_converter.py:109:29: error[invalid-argument-type] Argument is incorrect: Expected `str | list[str]`, found `complex`
2110
dataclasses_transform_converter.py:118:1: error[invalid-assignment] Object of type `Literal[1]` is not assignable to attribute `field0` of type `str`
2211
dataclasses_transform_converter.py:119:1: error[invalid-assignment] Object of type `Literal[1]` is not assignable to attribute `field3` of type `str | bytes`
23-
dataclasses_transform_converter.py:121:40: error[invalid-argument-type] Argument is incorrect: Expected `dict[str, str]`, found `tuple[tuple[Literal["a"], Literal["1"]], tuple[Literal["b"], Literal["2"]]]`
2412
dataclasses_transform_converter.py:130:31: error[invalid-argument-type] Argument to function `model_field` is incorrect: Expected `(str | Literal[1], /) -> int`, found `def converter_simple(s: str) -> int`
2513
dataclasses_transform_converter.py:133:31: error[invalid-argument-type] Argument to function `model_field` is incorrect: Expected `(str | int, /) -> int`, found `def converter_simple(s: str) -> int`
2614
"""
Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
conformance_automated = "Fail"
2-
conformant = "Unsupported"
1+
conformance_automated = "Pass"
32
errors_diff = """
4-
Line 77: Expected 1 errors
5-
Line 81: Expected 1 errors
6-
Line 93: Expected 1 errors
7-
Line 105: Expected 1 errors
8-
Line 113: Expected 1 errors
9-
Line 163: Expected 1 errors
10-
Line 167: Expected 1 errors
11-
Line 191: Expected 1 errors
12-
Lines 125, 126: Expected error (tag 'CoContra_Child2')
13-
Lines 131, 132: Expected error (tag 'CoContra_Child3')
14-
Lines 141, 142: Expected error (tag 'CoContra_Child5')
15-
Lines 195, 196: Expected error (tag 'ContraToContraToContra_WithTA')
163
"""
174
output = """
185
generics_variance.py:14:6: error[invalid-legacy-type-variable] A `TypeVar` cannot be both covariant and contravariant
6+
generics_variance.py:77:14: error[invalid-generic-class] Variance of type variable `T_co` is incompatible with base class `Inv`
7+
generics_variance.py:81:14: error[invalid-generic-class] Variance of type variable `T_contra` is incompatible with base class `Inv`
8+
generics_variance.py:93:17: error[invalid-generic-class] Variance of type variable `T_contra` is incompatible with base class `Co`
9+
generics_variance.py:105:21: error[invalid-generic-class] Variance of type variable `T_co` is incompatible with base class `Contra`
10+
generics_variance.py:113:21: error[invalid-generic-class] Variance of type variable `T_co` is incompatible with base class `Contra`
11+
generics_variance.py:126:5: error[invalid-generic-class] Variance of type variable `T_co` is incompatible with base class `CoContra`
12+
generics_variance.py:132:5: error[invalid-generic-class] Variance of type variable `T_contra` is incompatible with base class `CoContra`
13+
generics_variance.py:142:5: error[invalid-generic-class] Variance of type variable `T_co` is incompatible with base class `CoContra`
14+
generics_variance.py:163:26: error[invalid-generic-class] Variance of type variable `T_contra` is incompatible with base class `Contra`
15+
generics_variance.py:167:30: error[invalid-generic-class] Variance of type variable `T_co` is incompatible with base class `Contra`
16+
generics_variance.py:191:33: error[invalid-generic-class] Variance of type variable `T_contra` is incompatible with base class `Contra`
17+
generics_variance.py:196:5: error[invalid-generic-class] Variance of type variable `T_co` is incompatible with base class `Contra`
1918
"""

0 commit comments

Comments
 (0)