Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 7 additions & 23 deletions conformance/results/results.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 4 additions & 7 deletions conformance/results/ty/aliases_recursive.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
conformance_automated = "Fail"
conformant = "Partial"
notes = """
Does not reject invalid cyclic type alias definitions.
"""
conformance_automated = "Pass"
errors_diff = """
Line 72: Expected 1 errors
Line 75: Expected 1 errors
"""
output = """
aliases_recursive.py:19:12: error[invalid-assignment] Object of type `dict[str, None | complex | str | list[Json] | dict[str, Json]]` is not assignable to `Json`
Expand All @@ -17,4 +11,7 @@ aliases_recursive.py:51:24: error[invalid-assignment] Object of type `dict[str,
aliases_recursive.py:52:24: error[invalid-assignment] Object of type `dict[str, str | int | dict[str, str | int | list[int]]]` is not assignable to `RecursiveMapping`
aliases_recursive.py:63:30: error[invalid-assignment] Object of type `list[list[GenericTypeAlias1[str] | str] | str | list[list[GenericTypeAlias1[str] | str] | str | float]]` is not assignable to `GenericTypeAlias1[str]`
aliases_recursive.py:69:35: error[invalid-assignment] Object of type `list[list[GenericTypeAlias2[str, int] | str | int] | str | int | list[list[GenericTypeAlias2[str, int] | str | int] | str | int | list[list[GenericTypeAlias2[str, int] | str | int] | str | int | list[list[GenericTypeAlias2[str, int] | str | int] | str | float]]]]` is not assignable to `GenericTypeAlias2[str, int]`
aliases_recursive.py:72:29: error[cyclic-type-alias-definition] Type alias `RecursiveUnion` has a circular definition
aliases_recursive.py:75:31: error[cyclic-type-alias-definition] Type alias `MutualReference1` has a circular definition
aliases_recursive.py:75:93: error[cyclic-type-alias-definition] Type alias `MutualReference2` has a circular definition
"""
8 changes: 4 additions & 4 deletions conformance/results/ty/aliases_type_statement.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ aliases_type_statement.py:53:23: error[unbound-type-variable] Type variable `V`
aliases_type_statement.py:58:17: error[unbound-type-variable] Type variable `T1` is not bound to any outer generic context
aliases_type_statement.py:68:27: error[invalid-type-arguments] Type `str` is not assignable to upper bound `int` of type variable `S@RecursiveTypeAlias2`
aliases_type_statement.py:70:32: error[invalid-type-arguments] Type `int` is not assignable to upper bound `str` of type variable `T@RecursiveTypeAlias2`
aliases_type_statement.py:73:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias3`
aliases_type_statement.py:75:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias4`
aliases_type_statement.py:79:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias6`
aliases_type_statement.py:80:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias7`
aliases_type_statement.py:73:28: error[cyclic-type-alias-definition] Type alias `RecursiveTypeAlias3` has a circular definition
aliases_type_statement.py:75:31: error[cyclic-type-alias-definition] Type alias `RecursiveTypeAlias4` has a circular definition
aliases_type_statement.py:79:28: error[cyclic-type-alias-definition] Type alias `RecursiveTypeAlias6` has a circular definition
aliases_type_statement.py:80:28: error[cyclic-type-alias-definition] Type alias `RecursiveTypeAlias7` has a circular definition
"""
8 changes: 4 additions & 4 deletions conformance/results/ty/aliases_typealiastype.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ aliases_typealiastype.py:40:21: error[invalid-type-arguments] Type `int` is not
aliases_typealiastype.py:43:40: error[invalid-type-alias-type] Type parameter `S` used in the alias value must be included in `type_params`
aliases_typealiastype.py:44:40: error[invalid-type-alias-type] Type parameter `S` used in the alias value must be included in `type_params`
aliases_typealiastype.py:45:57: error[invalid-type-alias-type] The `type_params` argument to `TypeAliasType` must be a tuple literal
aliases_typealiastype.py:46:40: error[cyclic-type-alias-definition] Cyclic definition of `BadAlias4`
aliases_typealiastype.py:47:40: error[cyclic-type-alias-definition] Cyclic definition of `BadAlias5`
aliases_typealiastype.py:48:40: error[cyclic-type-alias-definition] Cyclic definition of `BadAlias6`
aliases_typealiastype.py:49:40: error[cyclic-type-alias-definition] Cyclic definition of `BadAlias7`
aliases_typealiastype.py:46:40: error[cyclic-type-alias-definition] Type alias `BadAlias4` has a circular definition
aliases_typealiastype.py:47:40: error[cyclic-type-alias-definition] Type alias `BadAlias5` has a circular definition
aliases_typealiastype.py:48:40: error[cyclic-type-alias-definition] Type alias `BadAlias6` has a circular definition
aliases_typealiastype.py:49:40: error[cyclic-type-alias-definition] Type alias `BadAlias7` has a circular definition
aliases_typealiastype.py:52:40: error[invalid-type-form] Function calls are not allowed in type expressions
aliases_typealiastype.py:53:40: error[invalid-type-form] List literals are not allowed in this context in a type expression
aliases_typealiastype.py:54:42: error[invalid-type-form] Tuple literals are not allowed in this context in a type expression
Expand Down
8 changes: 2 additions & 6 deletions conformance/results/ty/annotations_forward_refs.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
conformance_automated = "Fail"
conformant = "Partial"
notes = """
Fails to reject `str: "str"` forward references
"""
conformance_automated = "Pass"
errors_diff = """
Line 94: Expected 1 errors
"""
output = """
annotations_forward_refs.py:22:7: error[unresolved-reference] Name `ClassA` used when not defined
Expand All @@ -29,6 +24,7 @@ annotations_forward_refs.py:55:11: error[invalid-type-form] Module `types` is no
annotations_forward_refs.py:65:26: error[unresolved-reference] Name `ClassB` used when not defined
annotations_forward_refs.py:83:13: error[unresolved-reference] Name `ClassInner` used when not defined
annotations_forward_refs.py:92:14: error[unresolved-reference] Name `ClassF` used when not defined
annotations_forward_refs.py:94:11: error[invalid-type-form] Variable of type `Literal[""]` is not allowed in a type expression
annotations_forward_refs.py:96:9: error[invalid-type-form] Function `int` is not valid in a type expression
annotations_forward_refs.py:101:8: error[invalid-type-form] Function `int` is not valid in a type expression
annotations_forward_refs.py:103:9: error[invalid-type-form] Function `int` is not valid in a type expression
Expand Down
8 changes: 2 additions & 6 deletions conformance/results/ty/annotations_future_import.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
conformant = "Partial"
notes = """
Fails to reject `str: "str"` forward references
"""
conformance_automated = "Fail"
conformance_automated = "Pass"
errors_diff = """
Line 37: Expected 1 errors
"""
output = """
annotations_future_import.py:37:10: error[invalid-type-form] Variable of type `Literal[""]` is not allowed in a type expression
annotations_future_import.py:39:8: error[invalid-type-form] Function `int` is not valid in a type expression
annotations_future_import.py:44:8: error[invalid-type-form] Function `int` is not valid in a type expression
annotations_future_import.py:46:9: error[invalid-type-form] Function `int` is not valid in a type expression
Expand Down
4 changes: 2 additions & 2 deletions conformance/results/ty/constructors_call_init.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ conformance_automated = "Fail"
conformant = "Partial"
notes = """
Does not reject invalid argument types to an inherited constructor in a specialized subclass of a generic superclass.
Does not reject class-scoped type variables used in the `self` annotation.
"""
errors_diff = """
Line 42: Expected 1 errors
Line 107: Expected 1 errors
"""
output = """
constructors_call_init.py:21:13: error[invalid-argument-type] Argument to `Class1.__init__` is incorrect: Expected `int`, found `float*`
constructors_call_init.py:56:1: error[invalid-argument-type] Argument to `Class4.__init__` is incorrect: Expected `Class4[int]`, found `Class4[str]`
constructors_call_init.py:107:32: error[invalid-init-type-variable] First parameter of `__init__` cannot use type variable `T2` from an outer scope
constructors_call_init.py:107:36: error[invalid-init-type-variable] First parameter of `__init__` cannot use type variable `T1` from an outer scope
constructors_call_init.py:130:9: error[too-many-positional-arguments] Too many positional arguments to `object.__init__`: expected 1, got 2
"""
2 changes: 1 addition & 1 deletion conformance/results/ty/generics_self_usage.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ generics_self_usage.py:82:54: error[invalid-type-form] `Self` requires `self: Se
generics_self_usage.py:87:16: error[invalid-return-type] Return type does not match returned value: expected `Self@return_concrete_type`, found `Foo3`
generics_self_usage.py:103:15: error[invalid-type-form] Variable of type `<special-form 'typing.Self'>` is not allowed in a type expression
generics_self_usage.py:105:12: error[invalid-base] Invalid class base with type `<special-form 'typing.Self'>`
generics_self_usage.py:108:30: error[invalid-type-form] `Self` cannot be used in a type alias
generics_self_usage.py:108:30: error[invalid-type-form] Variable of type `<special-form 'typing.Self'>` is not allowed in a type expression
generics_self_usage.py:113:19: error[invalid-type-form] `Self` cannot be used in a static method
generics_self_usage.py:118:31: error[invalid-type-form] `Self` cannot be used in a static method
generics_self_usage.py:118:40: error[invalid-type-form] `Self` cannot be used in a static method
Expand Down
12 changes: 6 additions & 6 deletions conformance/results/ty/tuples_type_form.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ tuples_type_form.py:14:6: error[invalid-assignment] Object of type `tuple[Litera
tuples_type_form.py:15:6: error[invalid-assignment] Object of type `tuple[Literal[1], Literal[""]]` is not assignable to `tuple[int, int]`
tuples_type_form.py:25:7: error[invalid-assignment] Object of type `tuple[Literal[1]]` is not assignable to `tuple[()]`
tuples_type_form.py:36:7: error[invalid-assignment] Object of type `tuple[Literal[1], Literal[2], Literal[3], Literal[""]]` is not assignable to `tuple[int, ...]`
tuples_type_form.py:40:6: error[invalid-type-form] Invalid `tuple` specialization: `...` can only be used as the second element in a two-element `tuple` specialization
tuples_type_form.py:41:6: error[invalid-type-form] Invalid `tuple` specialization: `...` can only be used as the second element in a two-element `tuple` specialization
tuples_type_form.py:42:6: error[invalid-type-form] Invalid `tuple` specialization: `...` can only be used as the second element in a two-element `tuple` specialization
tuples_type_form.py:43:6: error[invalid-type-form] Invalid `tuple` specialization: `...` can only be used as the second element in a two-element `tuple` specialization
tuples_type_form.py:44:6: error[invalid-type-form] Invalid `tuple` specialization: `...` cannot be used after an unpacked element
tuples_type_form.py:45:6: error[invalid-type-form] Invalid `tuple` specialization: `...` cannot be used after an unpacked element
tuples_type_form.py:40:22: error[invalid-type-form] Invalid `tuple` specialization: `...` can only be used as the second element in a two-element `tuple` specialization
tuples_type_form.py:41:12: error[invalid-type-form] Invalid `tuple` specialization: `...` can only be used as the second element in a two-element `tuple` specialization
tuples_type_form.py:42:12: error[invalid-type-form] Invalid `tuple` specialization: `...` can only be used as the second element in a two-element `tuple` specialization
tuples_type_form.py:43:17: error[invalid-type-form] Invalid `tuple` specialization: `...` can only be used as the second element in a two-element `tuple` specialization
tuples_type_form.py:44:25: error[invalid-type-form] Invalid `tuple` specialization: `...` cannot be used after an unpacked element
tuples_type_form.py:45:30: error[invalid-type-form] Invalid `tuple` specialization: `...` cannot be used after an unpacked element
"""
2 changes: 1 addition & 1 deletion conformance/results/ty/version.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "ty 0.0.82"
version = "ty 0.0.83"
Loading
Loading