Skip to content

Commit 1eada48

Browse files
Update ty results for v0.0.78 (#2357)
1 parent cf943cc commit 1eada48

10 files changed

Lines changed: 61 additions & 129 deletions

conformance/results/results.html

Lines changed: 12 additions & 50 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: 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-
Does not reject a generic type alias that recursively specializes itself with different type arguments.
5-
"""
1+
conformance_automated = "Pass"
62
errors_diff = """
7-
Line 75: Expected 1 errors
83
"""
94
output = """
105
aliases_type_statement.py:17:1: error[unresolved-attribute] Object of type `TypeAliasType` has no attribute `bit_count`
@@ -30,6 +25,7 @@ aliases_type_statement.py:58:17: error[unbound-type-variable] Type variable `T1`
3025
aliases_type_statement.py:68:27: error[invalid-type-arguments] Type `str` is not assignable to upper bound `int` of type variable `S@RecursiveTypeAlias2`
3126
aliases_type_statement.py:70:32: error[invalid-type-arguments] Type `int` is not assignable to upper bound `str` of type variable `T@RecursiveTypeAlias2`
3227
aliases_type_statement.py:73:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias3`
28+
aliases_type_statement.py:75:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias4`
3329
aliases_type_statement.py:79:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias6`
3430
aliases_type_statement.py:80:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias7`
3531
"""

conformance/results/ty/aliases_typealiastype.toml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
conformance_automated = "Fail"
2-
conformant = "Partial"
3-
notes = """
4-
Does not reject cyclically defined `TypeAliasType` aliases.
5-
"""
1+
conformance_automated = "Pass"
62
errors_diff = """
7-
Line 46: Expected 1 errors
8-
Line 47: Expected 1 errors
9-
Line 48: Expected 1 errors
103
"""
114
output = """
125
aliases_typealiastype.py:32:7: error[unresolved-attribute] Object of type `TypeAliasType` has no attribute `other_attrib`
136
aliases_typealiastype.py:40:21: error[invalid-type-arguments] Type `int` is not assignable to upper bound `str` of type variable `TStr@GoodAlias5`
147
aliases_typealiastype.py:43:40: error[invalid-type-alias-type] Type parameter `S` used in the alias value must be included in `type_params`
158
aliases_typealiastype.py:44:40: error[invalid-type-alias-type] Type parameter `S` used in the alias value must be included in `type_params`
169
aliases_typealiastype.py:45:57: error[invalid-type-alias-type] The `type_params` argument to `TypeAliasType` must be a tuple literal
10+
aliases_typealiastype.py:46:40: error[cyclic-type-alias-definition] Cyclic definition of `BadAlias4`
11+
aliases_typealiastype.py:47:40: error[cyclic-type-alias-definition] Cyclic definition of `BadAlias5`
12+
aliases_typealiastype.py:48:40: error[cyclic-type-alias-definition] Cyclic definition of `BadAlias6`
13+
aliases_typealiastype.py:49:40: error[cyclic-type-alias-definition] Cyclic definition of `BadAlias7`
1714
aliases_typealiastype.py:52:40: error[invalid-type-form] Function calls are not allowed in type expressions
1815
aliases_typealiastype.py:53:40: error[invalid-type-form] List literals are not allowed in this context in a type expression
1916
aliases_typealiastype.py:54:42: error[invalid-type-form] Tuple literals are not allowed in this context in a type expression
Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
1-
conformance_automated = "Fail"
2-
conformant = "Partial"
3-
notes = """
4-
Does not detect calls to deprecated overloads.
5-
Does not detect implicit calls to deprecated dunder methods, for example via operators.
6-
Does not detect accesses of, or attempts to set, deprecated properties.
7-
"""
1+
conformance_automated = "Pass"
82
errors_diff = """
9-
Line 30: Expected 1 errors
10-
Line 41: Expected 1 errors
11-
Line 42: Expected 1 errors
12-
Line 44: Expected 1 errors
13-
Line 47: Expected 1 errors
14-
Line 48: Expected 1 errors
15-
Line 58: Expected 1 errors
163
"""
174
output = """
185
directives_deprecated.py:18:44: error[deprecated] The class `Ham` is deprecated: Use Spam instead
196
directives_deprecated.py:24:9: error[deprecated] The function `norwegian_blue` is deprecated: It is pining for the fjords
207
directives_deprecated.py:25:13: error[deprecated] The function `norwegian_blue` is deprecated: It is pining for the fjords
8+
directives_deprecated.py:30:1: error[deprecated] The overload of `foo` is deprecated: Only str will be allowed
219
directives_deprecated.py:34:7: error[deprecated] The class `Ham` is deprecated: Use Spam instead
10+
directives_deprecated.py:41:5: error[deprecated] The function `__add__` is deprecated: There is enough spam in the world
11+
directives_deprecated.py:42:1: error[deprecated] The function `__add__` is deprecated: There is enough spam in the world
12+
directives_deprecated.py:44:6: error[deprecated] The function `greasy` is deprecated: All spam will be equally greasy
13+
directives_deprecated.py:47:6: error[deprecated] The function `shape` is deprecated: Shapes are becoming immutable
14+
directives_deprecated.py:48:6: error[deprecated] The function `shape` is deprecated: Shapes are becoming immutable
15+
directives_deprecated.py:58:1: error[deprecated] The function `__call__` is deprecated: Deprecated
2216
directives_deprecated.py:69:1: error[deprecated] The function `lorem` is deprecated: Deprecated
2317
directives_deprecated.py:98:7: error[deprecated] The function `foo` is deprecated: Deprecated
2418
"""

conformance/results/ty/generics_paramspec_variance.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
conformant = "Partial"
2-
notes = """
3-
Does not error when a ParamSpec is used in a position that violates its explicit variance.
4-
"""
5-
conformance_automated = "Fail"
1+
conformance_automated = "Pass"
62
errors_diff = """
7-
Line 117: Expected 1 errors
8-
Line 126: Expected 1 errors
93
"""
104
output = """
115
generics_paramspec_variance.py:14:42: error[invalid-assignment] Object of type `InvariantParamSpec[(int, /)]` is not assignable to `InvariantParamSpec[(object, /)]`
@@ -24,7 +18,9 @@ generics_paramspec_variance.py:101:9: error[invalid-paramspec] A `ParamSpec` can
2418
generics_paramspec_variance.py:102:9: error[invalid-paramspec] A `ParamSpec` cannot specify variance when `infer_variance=True`
2519
generics_paramspec_variance.py:110:14: error[invalid-assignment] Object of type `InvariantParamSpecOld[(bool, /)]` is not assignable to `InvariantParamSpecOld[(int, /)]`
2620
generics_paramspec_variance.py:111:14: error[invalid-assignment] Object of type `InvariantParamSpecOld[(object, /)]` is not assignable to `InvariantParamSpecOld[(int, /)]`
21+
generics_paramspec_variance.py:117:25: error[invalid-generic-class] Variance of type variable `InP` is incompatible with method `out_f`
2722
generics_paramspec_variance.py:121:49: error[invalid-assignment] Object of type `ContravariantParamSpecOld[(int, /)]` is not assignable to `ContravariantParamSpecOld[(object, /)]`
23+
generics_paramspec_variance.py:126:23: error[invalid-generic-class] Variance of type variable `OutP` is incompatible with method `in_f`
2824
generics_paramspec_variance.py:132:43: error[invalid-assignment] Object of type `CovariantParamSpecOld[(object, /)]` is not assignable to `CovariantParamSpecOld[(int, /)]`
2925
generics_paramspec_variance.py:142:63: error[invalid-assignment] Object of type `InferredContravariantParamSpecOld[(int, /)]` is not assignable to `InferredContravariantParamSpecOld[(object, /)]`
3026
generics_paramspec_variance.py:151:57: error[invalid-assignment] Object of type `InferredCovariantParamSpecOld[(object, /)]` is not assignable to `InferredCovariantParamSpecOld[(int, /)]`
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
conformance_automated = "Fail"
2-
conformant = "Partial"
3-
notes = """
4-
Does not reject `list[T]()` in the global scope, where `T` is an unbound type variable.
5-
Does not reject `alias: TypeAlias = list[T]` in the body scope of a class generic over a type variable `T`.
6-
"""
1+
conformance_automated = "Pass"
72
errors_diff = """
8-
Line 98: Expected 1 errors
9-
Line 107: Expected 1 errors
103
"""
114
output = """
125
generics_scoping.py:15:1: error[type-assertion-failure] Type `Literal[1]` does not match asserted type `int`
@@ -20,6 +13,8 @@ generics_scoping.py:76:11: error[shadowed-type-variable] Generic class `MyGeneri
2013
generics_scoping.py:76:11: error[shadowed-type-variable] Generic class `MyGeneric` uses type variable `T` already bound by an enclosing scope
2114
generics_scoping.py:86:11: error[shadowed-type-variable] Generic class `Bad` uses type variable `T` already bound by an enclosing scope
2215
generics_scoping.py:89:17: error[unbound-type-variable] Type variable `T` is not bound to any outer generic context
16+
generics_scoping.py:98:29: error[invalid-type-form] Type alias cannot capture class-scoped type variable `T`
2317
generics_scoping.py:105:14: error[unbound-type-variable] Type variable `T` is not bound to any outer generic context
2418
generics_scoping.py:106:19: error[unbound-type-variable] Type variable `T` is not bound to any outer generic context
19+
generics_scoping.py:107:6: error[unbound-type-variable] Type variable `T` is not bound to any outer generic context
2520
"""
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
conformance_automated = "Fail"
2-
conformant = "Partial"
3-
notes = """
4-
Does not reject access of generic instance variable from the class object.
5-
"""
1+
conformance_automated = "Pass"
62
errors_diff = """
7-
Line 42: Expected 1 errors
8-
Line 43: Expected 1 errors
9-
Line 44: Expected 1 errors
10-
Line 45: Expected 1 errors
113
"""
124
output = """
135
generics_type_erasure.py:38:16: error[invalid-argument-type] Argument to `Node.__init__` is incorrect: Expected `int | None`, found `Literal[""]`
146
generics_type_erasure.py:40:16: error[invalid-argument-type] Argument to `Node.__init__` is incorrect: Expected `str | None`, found `Literal[0]`
7+
generics_type_erasure.py:42:1: error[invalid-attribute-access] Cannot access generic instance attribute `label` through a class
8+
generics_type_erasure.py:43:1: error[invalid-attribute-access] Cannot access generic instance attribute `label` through a class
9+
generics_type_erasure.py:44:1: error[invalid-attribute-access] Cannot access generic instance attribute `label` through a class
10+
generics_type_erasure.py:45:1: error[invalid-attribute-access] Cannot access generic instance attribute `label` through a class
1511
"""

conformance/results/ty/generics_typevartuple_variance.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
conformant = "Partial"
2-
conformance_automated = "Fail"
3-
notes = """
4-
Does not error when a TypeVarTuple is used in a position that violates its explicit variance.
5-
"""
1+
conformance_automated = "Pass"
62
errors_diff = """
7-
Line 79: Expected 1 errors
8-
Line 90: Expected 1 errors
93
"""
104
output = """
115
generics_typevartuple_variance.py:14:45: error[invalid-assignment] Object of type `InvariantTypeVarTuple[int]` is not assignable to `InvariantTypeVarTuple[object]`
@@ -28,7 +22,9 @@ generics_typevartuple_variance.py:57:10: error[invalid-legacy-type-variable] A `
2822
generics_typevartuple_variance.py:58:10: error[invalid-legacy-type-variable] A `TypeVarTuple` cannot specify variance when `infer_variance=True`
2923
generics_typevartuple_variance.py:68:45: error[invalid-assignment] Object of type `InvariantTypeVarTupleOld[int]` is not assignable to `InvariantTypeVarTupleOld[object]`
3024
generics_typevartuple_variance.py:69:42: error[invalid-assignment] Object of type `InvariantTypeVarTupleOld[object]` is not assignable to `InvariantTypeVarTupleOld[int]`
25+
generics_typevartuple_variance.py:79:24: error[invalid-generic-class] Variance of type variable `InTs` is incompatible with method `out_f`
3126
generics_typevartuple_variance.py:83:52: error[invalid-assignment] Object of type `ContravariantTypeVarTupleOld[int]` is not assignable to `ContravariantTypeVarTupleOld[object]`
27+
generics_typevartuple_variance.py:90:27: error[invalid-generic-class] Variance of type variable `OutTs` is incompatible with method `in_f`
3228
generics_typevartuple_variance.py:97:46: error[invalid-assignment] Object of type `CovariantTypeVarTupleOld[object]` is not assignable to `CovariantTypeVarTupleOld[int]`
3329
generics_typevartuple_variance.py:107:66: error[invalid-assignment] Object of type `InferredContravariantTypeVarTupleOld[int]` is not assignable to `InferredContravariantTypeVarTupleOld[object]`
3430
generics_typevartuple_variance.py:116:60: error[invalid-assignment] Object of type `InferredCovariantTypeVarTupleOld[object]` is not assignable to `InferredCovariantTypeVarTupleOld[int]`
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "ty 0.0.75"
1+
version = "ty 0.0.78"

0 commit comments

Comments
 (0)