Skip to content

Commit 3c854d6

Browse files
committed
update ty conformance results for v0.0.28
1 parent 5677ba6 commit 3c854d6

25 files changed

+176
-206
lines changed

conformance/results/results.html

Lines changed: 5 additions & 5 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.58.0</div>
182182
</th>
183-
<th class='tc-header'><div class='tc-name'>ty 0.0.27</div>
183+
<th class='tc-header'><div class='tc-name'>ty 0.0.28</div>
184184
</th>
185185
</tr>
186186
<tr><th class="column" colspan="6">
@@ -312,7 +312,7 @@ <h3>Python Type System Conformance Test Results</h3>
312312
<th class="column col2 conformant">Pass</th>
313313
<th class="column col2 conformant">Pass</th>
314314
<th class="column col2 conformant">Pass</th>
315-
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not reject using a bare `ParamSpec` as a type alias value.</p></span></div></th>
315+
<th class="column col2 conformant">Pass</th>
316316
</tr>
317317
<tr><th class="column col1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;generics_paramspec_components</th>
318318
<th class="column col2 conformant">Pass</th>
@@ -531,7 +531,7 @@ <h3>Python Type System Conformance Test Results</h3>
531531
<th class="column col2 conformant">Pass</th>
532532
<th class="column col2 conformant">Pass</th>
533533
<th class="column col2 conformant">Pass</th>
534-
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not emit a diagnostic on an invalid use of a variable as the right-hand side of a type alias.</p><p>Does not emit a diagnostic if a type alias to a union, in which every element of the union is implicitly specialized with `Unknown`, is invalidly specialized again.</p></span></div></th>
534+
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not emit a diagnostic if a type alias to a union, in which every element of the union is implicitly specialized with `Unknown`, is invalidly specialized again.</p></span></div></th>
535535
</tr>
536536
<tr><th class="column col1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;aliases_implicit</th>
537537
<th class="column col2 conformant">Pass</th>
@@ -961,7 +961,7 @@ <h3>Python Type System Conformance Test Results</h3>
961961
<th class="column col2 conformant">Pass</th>
962962
<th class="column col2 conformant">Pass</th>
963963
<th class="column col2 conformant">Pass</th>
964-
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not validate overrides of `TypedDict` fields in subclasses.</p></span></div></th>
964+
<th class="column col2 conformant">Pass</th>
965965
</tr>
966966
<tr><th class="column col1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;typeddicts_operations</th>
967967
<th class="column col2 conformant">Pass</th>
@@ -989,7 +989,7 @@ <h3>Python Type System Conformance Test Results</h3>
989989
<th class="column col2 conformant">Pass</th>
990990
<th class="column col2 conformant">Pass</th>
991991
<th class="column col2 conformant">Pass</th>
992-
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not validate overrides of `TypedDict` keys.</p></span></div></th>
992+
<th class="column col2 conformant">Pass</th>
993993
</tr>
994994
<tr><th class="column col1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;typeddicts_readonly_kwargs</th>
995995
<th class="column col2 conformant">Pass</th>
Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
conformance_automated = "Fail"
22
conformant = "Partial"
33
notes = """
4-
Does not emit a diagnostic on an invalid use of a variable as the right-hand side of a type alias.
54
Does not emit a diagnostic if a type alias to a union, in which every element of the union is implicitly specialized with `Unknown`, is invalidly specialized again.
65
"""
76
errors_diff = """
8-
Line 87: Expected 1 errors
97
Line 100: Expected 1 errors
108
"""
119
output = """
@@ -14,18 +12,19 @@ aliases_explicit.py:68:9: error[not-subscriptable] Cannot subscript non-generic
1412
aliases_explicit.py:69:29: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
1513
aliases_explicit.py:70:29: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
1614
aliases_explicit.py:71:24: error[invalid-type-arguments] Type argument for `ParamSpec` must be either a list of types, `ParamSpec`, `Concatenate`, or `...`
17-
aliases_explicit.py:79:1: error[invalid-type-form] Invalid right-hand side for `typing.TypeAlias` assignment
18-
aliases_explicit.py:80:1: error[invalid-type-form] Invalid right-hand side for `typing.TypeAlias` assignment
19-
aliases_explicit.py:81:1: error[invalid-type-form] Invalid right-hand side for `typing.TypeAlias` assignment
20-
aliases_explicit.py:82:1: error[invalid-type-form] Invalid right-hand side for `typing.TypeAlias` assignment
21-
aliases_explicit.py:83:1: error[invalid-type-form] Invalid right-hand side for `typing.TypeAlias` assignment
22-
aliases_explicit.py:84:1: error[invalid-type-form] Invalid right-hand side for `typing.TypeAlias` assignment
23-
aliases_explicit.py:85:1: error[invalid-type-form] Invalid right-hand side for `typing.TypeAlias` assignment
24-
aliases_explicit.py:86:1: error[invalid-type-form] Invalid right-hand side for `typing.TypeAlias` assignment
25-
aliases_explicit.py:88:1: error[invalid-type-form] Invalid right-hand side for `typing.TypeAlias` assignment
26-
aliases_explicit.py:89:1: error[invalid-type-form] Invalid right-hand side for `typing.TypeAlias` assignment
27-
aliases_explicit.py:90:1: error[invalid-type-form] Invalid right-hand side for `typing.TypeAlias` assignment
28-
aliases_explicit.py:91:1: error[invalid-type-form] Invalid right-hand side for `typing.TypeAlias` assignment
15+
aliases_explicit.py:79:21: error[invalid-type-form] Function calls are not allowed in type alias values
16+
aliases_explicit.py:80:21: error[invalid-type-form] List literals are not allowed in this context in a type alias value
17+
aliases_explicit.py:81:21: error[invalid-type-form] Tuple literals are not allowed in this context in a type alias value
18+
aliases_explicit.py:82:21: error[invalid-type-form] List comprehensions are not allowed in type alias values
19+
aliases_explicit.py:83:21: error[invalid-type-form] Dict literals are not allowed in type alias values
20+
aliases_explicit.py:84:21: error[invalid-type-form] Function calls are not allowed in type alias values
21+
aliases_explicit.py:85:21: error[invalid-type-form] Only simple names and dotted names can be subscripted in type alias values
22+
aliases_explicit.py:86:21: error[invalid-type-form] `if` expressions are not allowed in type alias values
23+
aliases_explicit.py:87:21: error[invalid-type-form] Variable of type `Literal[3]` is not allowed in a type alias value
24+
aliases_explicit.py:88:22: error[invalid-type-form] Boolean literals are not allowed in this context in a type alias value: Did you mean `typing.Literal[True]`?
25+
aliases_explicit.py:89:22: error[invalid-type-form] Int literals are not allowed in this context in a type alias value: Did you mean `typing.Literal[1]`?
26+
aliases_explicit.py:90:22: error[invalid-type-form] Boolean operations are not allowed in type alias values
27+
aliases_explicit.py:91:22: error[invalid-type-form] F-strings are not allowed in type alias values
2928
aliases_explicit.py:101:6: error[call-non-callable] Object of type `UnionType` is not callable
3029
aliases_explicit.py:102:5: error[not-subscriptable] Cannot subscript non-generic type `<types.UnionType special-form 'list[Unknown] | set[Unknown]'>`
3130
"""

conformance/results/ty/aliases_implicit.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ aliases_implicit.py:78:29: error[invalid-type-arguments] Too many type arguments
1818
aliases_implicit.py:79:29: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
1919
aliases_implicit.py:80:24: error[invalid-type-arguments] Type argument for `ParamSpec` must be either a list of types, `ParamSpec`, `Concatenate`, or `...`
2020
aliases_implicit.py:81:25: error[invalid-type-arguments] Type `str` is not assignable to upper bound `int | float` of type variable `TFloat@GoodTypeAlias12`
21-
aliases_implicit.py:107:9: error[invalid-type-form] Variable of type `list[<class 'int'> | <class 'str'>]` is not allowed in a type expression
22-
aliases_implicit.py:108:9: error[invalid-type-form] Variable of type `tuple[tuple[<class 'int'>, <class 'str'>]]` is not allowed in a type expression
23-
aliases_implicit.py:109:9: error[invalid-type-form] Variable of type `list[<class 'int'>]` is not allowed in a type expression
24-
aliases_implicit.py:110:9: error[invalid-type-form] Variable of type `dict[str, str]` is not allowed in a type expression
25-
aliases_implicit.py:114:9: error[invalid-type-form] Variable of type `Literal[3]` is not allowed in a type expression
26-
aliases_implicit.py:115:10: error[invalid-type-form] Variable of type `Literal[True]` is not allowed in a type expression
27-
aliases_implicit.py:116:10: error[invalid-type-form] Variable of type `Literal[1]` is not allowed in a type expression
28-
aliases_implicit.py:118:10: error[invalid-type-form] Variable of type `Literal["int"]` is not allowed in a type expression
29-
aliases_implicit.py:119:10: error[invalid-type-form] Variable of type `Literal["int | str"]` is not allowed in a type expression
21+
aliases_implicit.py:107:9: error[invalid-type-form] Variable of type `list[<class 'int'> | <class 'str'>]` is not allowed in a parameter annotation
22+
aliases_implicit.py:108:9: error[invalid-type-form] Variable of type `tuple[tuple[<class 'int'>, <class 'str'>]]` is not allowed in a parameter annotation
23+
aliases_implicit.py:109:9: error[invalid-type-form] Variable of type `list[<class 'int'>]` is not allowed in a parameter annotation
24+
aliases_implicit.py:110:9: error[invalid-type-form] Variable of type `dict[str, str]` is not allowed in a parameter annotation
25+
aliases_implicit.py:114:9: error[invalid-type-form] Variable of type `Literal[3]` is not allowed in a parameter annotation
26+
aliases_implicit.py:115:10: error[invalid-type-form] Variable of type `Literal[True]` is not allowed in a parameter annotation
27+
aliases_implicit.py:116:10: error[invalid-type-form] Variable of type `Literal[1]` is not allowed in a parameter annotation
28+
aliases_implicit.py:118:10: error[invalid-type-form] Variable of type `Literal["int"]` is not allowed in a parameter annotation
29+
aliases_implicit.py:119:10: error[invalid-type-form] Variable of type `Literal["int | str"]` is not allowed in a parameter annotation
3030
aliases_implicit.py:133:6: error[call-non-callable] Object of type `UnionType` is not callable
3131
aliases_implicit.py:135:5: error[not-subscriptable] Cannot subscript non-generic type `<types.UnionType special-form 'list[Unknown] | set[Unknown]'>`
3232
"""

conformance/results/ty/aliases_type_statement.toml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,29 @@ errors_diff = """
1010
Line 56: Expected 1 errors
1111
Line 84: Expected 1 errors
1212
Lines 51, 52: Expected error (tag 'TA14')
13-
Line 10: Unexpected errors ['aliases_type_statement.py:10:52: error[invalid-type-arguments] Too many type arguments: expected 2, got 3', 'aliases_type_statement.py:10:52: error[invalid-type-form] `...` is not allowed in this context in a type expression']
13+
Line 10: Unexpected errors ['aliases_type_statement.py:10:52: error[invalid-type-arguments] Too many type arguments: expected 2, got 3', 'aliases_type_statement.py:10:52: error[invalid-type-form] `...` is not allowed in this context in a type alias value']
1414
"""
1515
output = """
1616
aliases_type_statement.py:10:52: error[invalid-type-arguments] Too many type arguments: expected 2, got 3
17-
aliases_type_statement.py:10:52: error[invalid-type-form] `...` is not allowed in this context in a type expression
17+
aliases_type_statement.py:10:52: error[invalid-type-form] `...` is not allowed in this context in a type alias value
1818
aliases_type_statement.py:17:1: error[unresolved-attribute] Object of type `TypeAliasType` has no attribute `bit_count`
1919
aliases_type_statement.py:19:1: error[call-non-callable] Object of type `TypeAliasType` is not callable
2020
aliases_type_statement.py:23:7: error[unresolved-attribute] Object of type `TypeAliasType` has no attribute `other_attrib`
2121
aliases_type_statement.py:26:18: error[invalid-base] Invalid class base with type `TypeAliasType`
2222
aliases_type_statement.py:31:22: error[invalid-argument-type] Argument to function `isinstance` is incorrect: Expected `type | UnionType | tuple[Divergent, ...]`, found `TypeAliasType`
23-
aliases_type_statement.py:37:22: error[invalid-type-form] Function calls are not allowed in type expressions
24-
aliases_type_statement.py:38:22: error[invalid-type-form] List literals are not allowed in this context in a type expression: Did you mean `tuple[int, str]`?
25-
aliases_type_statement.py:39:22: error[invalid-type-form] Tuple literals are not allowed in this context in a type expression
26-
aliases_type_statement.py:39:23: error[invalid-type-form] Tuple literals are not allowed in this context in a type expression: Did you mean `tuple[int, str]`?
27-
aliases_type_statement.py:40:22: error[invalid-type-form] List comprehensions are not allowed in type expressions
28-
aliases_type_statement.py:41:22: error[invalid-type-form] Dict literals are not allowed in type expressions
29-
aliases_type_statement.py:42:22: error[invalid-type-form] Function calls are not allowed in type expressions
30-
aliases_type_statement.py:43:22: error[invalid-type-form] Invalid subscript of object of type `list[<class 'int'>]` in type expression
31-
aliases_type_statement.py:43:28: error[invalid-type-form] Int literals are not allowed in this context in a type expression
32-
aliases_type_statement.py:44:22: error[invalid-type-form] `if` expressions are not allowed in type expressions
33-
aliases_type_statement.py:45:22: error[invalid-type-form] Variable of type `Literal[1]` is not allowed in a type expression
34-
aliases_type_statement.py:46:23: error[invalid-type-form] Boolean literals are not allowed in this context in a type expression
35-
aliases_type_statement.py:47:23: error[invalid-type-form] Int literals are not allowed in this context in a type expression
36-
aliases_type_statement.py:48:23: error[invalid-type-form] Boolean operations are not allowed in type expressions
37-
aliases_type_statement.py:49:23: error[invalid-type-form] F-strings are not allowed in type expressions
23+
aliases_type_statement.py:37:22: error[invalid-type-form] Function calls are not allowed in type alias values
24+
aliases_type_statement.py:38:22: error[invalid-type-form] List literals are not allowed in this context in a type alias value
25+
aliases_type_statement.py:39:22: error[invalid-type-form] Tuple literals are not allowed in this context in a type alias value
26+
aliases_type_statement.py:40:22: error[invalid-type-form] List comprehensions are not allowed in type alias values
27+
aliases_type_statement.py:41:22: error[invalid-type-form] Dict literals are not allowed in type alias values
28+
aliases_type_statement.py:42:22: error[invalid-type-form] Function calls are not allowed in type alias values
29+
aliases_type_statement.py:43:22: error[invalid-type-form] Only simple names and dotted names can be subscripted in type alias values
30+
aliases_type_statement.py:44:22: error[invalid-type-form] `if` expressions are not allowed in type alias values
31+
aliases_type_statement.py:45:22: error[invalid-type-form] Variable of type `Literal[1]` is not allowed in a type alias value
32+
aliases_type_statement.py:46:23: error[invalid-type-form] Boolean literals are not allowed in this context in a type alias value: Did you mean `typing.Literal[True]`?
33+
aliases_type_statement.py:47:23: error[invalid-type-form] Int literals are not allowed in this context in a type alias value: Did you mean `typing.Literal[1]`?
34+
aliases_type_statement.py:48:23: error[invalid-type-form] Boolean operations are not allowed in type alias values
35+
aliases_type_statement.py:49:23: error[invalid-type-form] F-strings are not allowed in type alias values
3836
aliases_type_statement.py:62:23: error[unbound-type-variable] Type variable `V` is not bound to any outer generic context
3937
aliases_type_statement.py:67:17: error[unbound-type-variable] Type variable `T1` is not bound to any outer generic context
4038
aliases_type_statement.py:77:27: error[invalid-type-arguments] Type `str` is not assignable to upper bound `int` of type variable `S@RecursiveTypeAlias2`

conformance/results/ty/aliases_typealiastype.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,16 @@ Line 48: Expected 1 errors
1818
output = """
1919
aliases_typealiastype.py:32:7: error[unresolved-attribute] Object of type `TypeAliasType` has no attribute `other_attrib`
2020
aliases_typealiastype.py:52:40: error[invalid-type-form] Function calls are not allowed in type expressions
21-
aliases_typealiastype.py:53:40: error[invalid-type-form] List literals are not allowed in this context in a type expression: Did you mean `tuple[int, str]`?
21+
aliases_typealiastype.py:53:40: error[invalid-type-form] List literals are not allowed in this context in a type expression
2222
aliases_typealiastype.py:54:42: error[invalid-type-form] Tuple literals are not allowed in this context in a type expression
23-
aliases_typealiastype.py:54:43: error[invalid-type-form] Tuple literals are not allowed in this context in a type expression: Did you mean `tuple[int, str]`?
2423
aliases_typealiastype.py:55:42: error[invalid-type-form] List comprehensions are not allowed in type expressions
2524
aliases_typealiastype.py:56:42: error[invalid-type-form] Dict literals are not allowed in type expressions
2625
aliases_typealiastype.py:57:42: error[invalid-type-form] Function calls are not allowed in type expressions
27-
aliases_typealiastype.py:58:42: error[invalid-type-form] Invalid subscript of object of type `list[<class 'int'>]` in type expression
28-
aliases_typealiastype.py:58:48: error[invalid-type-form] Int literals are not allowed in this context in a type expression
26+
aliases_typealiastype.py:58:42: error[invalid-type-form] Only simple names and dotted names can be subscripted in type expressions
2927
aliases_typealiastype.py:59:42: error[invalid-type-form] `if` expressions are not allowed in type expressions
3028
aliases_typealiastype.py:60:42: error[invalid-type-form] Variable of type `Literal[3]` is not allowed in a type expression
31-
aliases_typealiastype.py:61:42: error[invalid-type-form] Boolean literals are not allowed in this context in a type expression
32-
aliases_typealiastype.py:62:42: error[invalid-type-form] Int literals are not allowed in this context in a type expression
29+
aliases_typealiastype.py:61:42: error[invalid-type-form] Boolean literals are not allowed in this context in a type expression: Did you mean `typing.Literal[True]`?
30+
aliases_typealiastype.py:62:42: error[invalid-type-form] Int literals are not allowed in this context in a type expression: Did you mean `typing.Literal[1]`?
3331
aliases_typealiastype.py:63:42: error[invalid-type-form] Boolean operations are not allowed in type expressions
3432
aliases_typealiastype.py:64:42: error[invalid-type-form] F-strings are not allowed in type expressions
3533
aliases_typealiastype.py:66:47: error[unresolved-reference] Name `BadAlias21` used when not defined

0 commit comments

Comments
 (0)