Skip to content

Commit fbb46c5

Browse files
committed
Update ty results for v0.0.65
1 parent 39164cd commit fbb46c5

23 files changed

Lines changed: 147 additions & 237 deletions

conformance/results/results.html

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

conformance/results/ty/aliases_type_statement.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
conformance_automated = "Fail"
22
conformant = "Partial"
33
notes = """
4-
Does not reject circular definitions of type aliases.
5-
Does not support `type` statements generic over `TypeVarTuple`s.
4+
Does not reject a generic type alias that recursively specializes itself with different type arguments.
65
"""
76
errors_diff = """
87
Line 75: Expected 1 errors
9-
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']
108
"""
119
output = """
12-
aliases_type_statement.py:10:52: error[invalid-type-arguments] Too many type arguments: expected 2, got 3
13-
aliases_type_statement.py:10:52: error[invalid-type-form] `...` is not allowed in this context in a type alias value
1410
aliases_type_statement.py:17:1: error[unresolved-attribute] Object of type `TypeAliasType` has no attribute `bit_count`
1511
aliases_type_statement.py:19:1: error[call-non-callable] Object of type `TypeAliasType` is not callable
1612
aliases_type_statement.py:23:7: error[unresolved-attribute] Object of type `TypeAliasType` has no attribute `other_attrib`

conformance/results/ty/aliases_typealiastype.toml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
conformance_automated = "Fail"
22
conformant = "Partial"
33
notes = """
4-
Does not reject specializing a type parameter in a generic type alias with a type inconsistent with the parameter's upper bound.
5-
Does not reject declaring a type alias with a type variable that is not in scope.
6-
Does not reject declaring a type alias with a non-literal tuple passed to the `type_params` parameter.
7-
Does not reject cyclically defined type aliases.
4+
Does not reject cyclically defined `TypeAliasType` aliases.
85
"""
96
errors_diff = """
10-
Line 40: Expected 1 errors
11-
Line 43: Expected 1 errors
12-
Line 44: Expected 1 errors
13-
Line 45: Expected 1 errors
147
Line 46: Expected 1 errors
158
Line 47: Expected 1 errors
169
Line 48: Expected 1 errors
1710
"""
1811
output = """
1912
aliases_typealiastype.py:32:7: error[unresolved-attribute] Object of type `TypeAliasType` has no attribute `other_attrib`
13+
aliases_typealiastype.py:40:21: error[invalid-type-arguments] Type `int` is not assignable to upper bound `str` of type variable `TStr@GoodAlias5`
14+
aliases_typealiastype.py:43:40: error[invalid-type-alias-type] Type parameter `S` used in the alias value must be included in `type_params`
15+
aliases_typealiastype.py:44:40: error[invalid-type-alias-type] Type parameter `S` used in the alias value must be included in `type_params`
16+
aliases_typealiastype.py:45:57: error[invalid-type-alias-type] The `type_params` argument to `TypeAliasType` must be a tuple literal
2017
aliases_typealiastype.py:52:40: error[invalid-type-form] Function calls are not allowed in type expressions
2118
aliases_typealiastype.py:53:40: error[invalid-type-form] List literals are not allowed in this context in a type expression
2219
aliases_typealiastype.py:54:42: error[invalid-type-form] Tuple literals are not allowed in this context in a type expression

conformance/results/ty/callables_annotation.toml

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-
Infers a callback protocol as being a gradual type if the callback has signature `__call__[T](self, *args: T, **kwargs: T)` and `T` has been explicitly specialized to `Any`.
5-
"""
1+
conformance_automated = "Pass"
62
errors_diff = """
7-
Line 159: Expected 1 errors
83
"""
94
output = """
105
callables_annotation.py:25:5: error[missing-argument] No argument provided for required parameter 2
@@ -23,6 +18,7 @@ callables_annotation.py:58:14: error[invalid-type-form] The first argument to `C
2318
callables_annotation.py:59:14: error[invalid-type-form] `[...]` is not a valid parameter list for `Callable`: Did you mean `Callable[..., int]`?
2419
callables_annotation.py:91:7: error[invalid-assignment] Object of type `def test_cb2() -> str` is not assignable to `(int, /, *args: Any, **kwargs: Any) -> str`
2520
callables_annotation.py:93:7: error[invalid-assignment] Object of type `def test_cb4(*, a: int) -> str` is not assignable to `(int, /, *args: Any, **kwargs: Any) -> str`
21+
callables_annotation.py:159:25: error[invalid-assignment] Object of type `Proto8` is not assignable to `Proto5[Any]`
2622
callables_annotation.py:172:26: error[invalid-assignment] Object of type `() -> str` is not assignable to `(int, /, *args: Any, **kwargs: Any) -> str`
2723
callables_annotation.py:187:48: error[invalid-assignment] Object of type `(int, str, /) -> str` is not assignable to `(str, /, *args: Any, **kwargs: Any) -> str`
2824
callables_annotation.py:189:32: error[invalid-assignment] Object of type `(int, str, /) -> str` is not assignable to `(str, /, *args: Any, **kwargs: Any) -> str`

0 commit comments

Comments
 (0)