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
2 changes: 1 addition & 1 deletion conformance/results/results.html

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

8 changes: 4 additions & 4 deletions conformance/results/ty/aliases_recursive.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ conformance_automated = "Pass"
errors_diff = """
"""
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`
aliases_recursive.py:20:12: error[invalid-assignment] Object of type `list[None | complex | str | list[Json] | dict[str, Json]]` is not assignable to `Json`
aliases_recursive.py:19:12: error[invalid-assignment] Object of type `dict[str, complex]` is not assignable to `Json`
aliases_recursive.py:20:12: error[invalid-assignment] Object of type `list[complex]` is not assignable to `Json`
aliases_recursive.py:38:22: error[invalid-assignment] Object of type `tuple[Literal[1], tuple[Literal["1"], Literal[1]], tuple[Literal[1], tuple[Literal[1], list[int]]]]` is not assignable to `RecursiveTuple`
aliases_recursive.py:39:22: error[invalid-assignment] Object of type `tuple[Literal[1], list[int]]` is not assignable to `RecursiveTuple`
aliases_recursive.py:50:24: error[invalid-assignment] Object of type `dict[str, list[int]]` is not assignable to `RecursiveMapping`
aliases_recursive.py:51:24: error[invalid-assignment] Object of type `dict[str, str | int | list[int]]` is not assignable to `RecursiveMapping`
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:63:30: error[invalid-assignment] Object of type `list[str | list[float]]` is not assignable to `GenericTypeAlias1[str]`
aliases_recursive.py:69:35: error[invalid-assignment] Object of type `list[list[int | list[str | int | list[float]]] | str]` 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
Expand Down
6 changes: 3 additions & 3 deletions conformance/results/ty/dataclasses_kwonly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ conformance_automated = "Pass"
errors_diff = """
"""
output = """
dataclasses_kwonly.py:23:11: error[too-many-positional-arguments] Too many positional arguments: expected 1, got 2
dataclasses_kwonly.py:38:11: error[too-many-positional-arguments] Too many positional arguments: expected 1, got 2
dataclasses_kwonly.py:53:11: error[too-many-positional-arguments] Too many positional arguments: expected 1, got 2
dataclasses_kwonly.py:23:11: error[too-many-positional-arguments] Too many positional arguments: expected 2, got 3
dataclasses_kwonly.py:38:11: error[too-many-positional-arguments] Too many positional arguments: expected 2, got 3
dataclasses_kwonly.py:53:11: error[too-many-positional-arguments] Too many positional arguments: expected 2, got 3
"""
4 changes: 2 additions & 2 deletions conformance/results/ty/dataclasses_transform_class.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ output = """
dataclasses_transform_class.py:51:7: error[invalid-frozen-dataclass-subclass] Non-frozen dataclass `Customer1Subclass` cannot inherit from frozen dataclass `Customer1`
dataclasses_transform_class.py:63:1: error[invalid-assignment] Property `id` defined in `Customer1` is read-only
dataclasses_transform_class.py:66:8: error[missing-argument] No arguments provided for required parameters `id`, `name`
dataclasses_transform_class.py:66:18: error[too-many-positional-arguments] Too many positional arguments: expected 0, got 2
dataclasses_transform_class.py:66:18: error[too-many-positional-arguments] Too many positional arguments: expected 1, got 3
dataclasses_transform_class.py:72:6: error[unsupported-operator] Operator `<` is not supported between two objects of type `Customer1`
dataclasses_transform_class.py:82:8: error[missing-argument] No argument provided for required parameter `id`
dataclasses_transform_class.py:82:18: error[too-many-positional-arguments] Too many positional arguments: expected 0, got 2
dataclasses_transform_class.py:82:18: error[too-many-positional-arguments] Too many positional arguments: expected 1, got 3
dataclasses_transform_class.py:122:1: error[invalid-assignment] Property `id` defined in `Customer3` is read-only
"""
2 changes: 1 addition & 1 deletion conformance/results/ty/dataclasses_transform_field.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ errors_diff = """
output = """
dataclasses_transform_field.py:64:16: error[unknown-argument] Argument `id` does not match any known parameter
dataclasses_transform_field.py:75:1: error[missing-argument] No argument provided for required parameter `name`
dataclasses_transform_field.py:75:16: error[too-many-positional-arguments] Too many positional arguments: expected 0, got 1
dataclasses_transform_field.py:75:16: error[too-many-positional-arguments] Too many positional arguments: expected 1, got 2
"""
2 changes: 1 addition & 1 deletion conformance/results/ty/dataclasses_transform_func.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dataclasses_transform_func.py:56:1: error[invalid-assignment] Object of type `Li
dataclasses_transform_func.py:60:6: error[unsupported-operator] Operator `<` is not supported between two objects of type `Customer1`
dataclasses_transform_func.py:64:36: error[unknown-argument] Argument `salary` does not match any known parameter
dataclasses_transform_func.py:70:8: error[missing-argument] No arguments provided for required parameters `id`, `name`
dataclasses_transform_func.py:70:18: error[too-many-positional-arguments] Too many positional arguments: expected 0, got 2
dataclasses_transform_func.py:70:18: error[too-many-positional-arguments] Too many positional arguments: expected 1, got 3
dataclasses_transform_func.py:89:7: error[invalid-frozen-dataclass-subclass] Non-frozen dataclass `Customer3Subclass` cannot inherit from frozen dataclass `Customer3`
dataclasses_transform_func.py:96:1: error[invalid-assignment] Property `id` defined in `Customer3` is read-only
"""
4 changes: 2 additions & 2 deletions conformance/results/ty/dataclasses_transform_meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ output = """
dataclasses_transform_meta.py:51:7: error[invalid-frozen-dataclass-subclass] Non-frozen dataclass `Customer1Subclass` cannot inherit from frozen dataclass `Customer1`
dataclasses_transform_meta.py:63:1: error[invalid-assignment] Property `id` defined in `Customer1` is read-only
dataclasses_transform_meta.py:66:8: error[missing-argument] No arguments provided for required parameters `id`, `name`
dataclasses_transform_meta.py:66:18: error[too-many-positional-arguments] Too many positional arguments: expected 0, got 2
dataclasses_transform_meta.py:66:18: error[too-many-positional-arguments] Too many positional arguments: expected 1, got 3
dataclasses_transform_meta.py:73:6: error[unsupported-operator] Operator `<` is not supported between two objects of type `Customer1`
dataclasses_transform_meta.py:83:8: error[missing-argument] No argument provided for required parameter `id`
dataclasses_transform_meta.py:83:18: error[too-many-positional-arguments] Too many positional arguments: expected 0, got 2
dataclasses_transform_meta.py:83:18: error[too-many-positional-arguments] Too many positional arguments: expected 1, got 3
dataclasses_transform_meta.py:103:1: error[invalid-assignment] Property `id` defined in `Customer3` is read-only
"""
8 changes: 4 additions & 4 deletions conformance/results/ty/dataclasses_usage.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ errors_diff = """
output = """
dataclasses_usage.py:51:6: error[missing-argument] No argument provided for required parameter `unit_price`
dataclasses_usage.py:52:28: error[invalid-argument-type] Argument is incorrect: Expected `float`, found `Literal["price"]`
dataclasses_usage.py:53:36: error[too-many-positional-arguments] Too many positional arguments: expected 3, got 4
dataclasses_usage.py:53:36: error[too-many-positional-arguments] Too many positional arguments: expected 4, got 5
dataclasses_usage.py:62:5: error[invalid-dataclass-field-order] Required field `b` cannot be defined after fields with default values
dataclasses_usage.py:68:5: error[invalid-dataclass-field-order] Required field `b` cannot be defined after fields with default values
dataclasses_usage.py:74:5: error[invalid-dataclass-field-order] Required field `b` cannot be defined after fields with default values
dataclasses_usage.py:84:13: error[too-many-positional-arguments] Too many positional arguments: expected 1, got 2
dataclasses_usage.py:84:13: error[too-many-positional-arguments] Too many positional arguments: expected 2, got 3
dataclasses_usage.py:89:14: error[invalid-assignment] Object of type `dataclasses.Field[str]` is not assignable to `int`
dataclasses_usage.py:128:8: error[too-many-positional-arguments] Too many positional arguments: expected 1, got 2
dataclasses_usage.py:128:8: error[too-many-positional-arguments] Too many positional arguments: expected 2, got 3
dataclasses_usage.py:131:1: error[missing-argument] No argument provided for required parameter `y` of `DC8.__init__`
dataclasses_usage.py:180:6: error[too-many-positional-arguments] Too many positional arguments to `object.__init__`: expected 1, got 2
dataclasses_usage.py:246:12: error[too-many-positional-arguments] Too many positional arguments: expected 2, got 3
dataclasses_usage.py:246:12: error[too-many-positional-arguments] Too many positional arguments: expected 3, got 4
"""
2 changes: 1 addition & 1 deletion conformance/results/ty/generics_basic.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ generics_basic.py:223:22: error[invalid-argument-type] Argument to function `tak
generics_basic.py:232:21: error[invalid-argument-type] Argument to function `takes_two_lists` is incorrect: Expected `list[int | str]`, found `list[int]`
generics_basic.py:232:24: error[invalid-argument-type] Argument to function `takes_two_lists` is incorrect: Expected `list[int | str]`, found `list[str]`
generics_basic.py:240:26: error[invalid-argument-type] Argument to function `takes_two_int_lists` is incorrect: Expected `list[int]`, found `Literal["not a list"]`
generics_basic.py:241:26: error[invalid-argument-type] Argument to function `takes_two_int_lists` is incorrect: Argument type `int | str` does not satisfy upper bound `int` of type variable `T_int`
generics_basic.py:241:26: error[invalid-argument-type] Argument to function `takes_two_int_lists` is incorrect: Argument type `str` does not satisfy upper bound `int` of type variable `T_int`
generics_basic.py:251:28: error[invalid-argument-type] Argument to function `takes_two_int_lists` is incorrect: Expected `list[int]`, found `list[bool]`
"""
2 changes: 1 addition & 1 deletion conformance/results/ty/generics_self_attributes.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ conformance_automated = "Pass"
errors_diff = """
"""
output = """
generics_self_attributes.py:26:33: error[invalid-argument-type] Argument is incorrect: Expected `OrdinalLinkedList | None`, found `LinkedList[int]`
generics_self_attributes.py:26:33: error[invalid-argument-type] Argument is incorrect: Argument type `LinkedList[int]` does not satisfy upper bound `OrdinalLinkedList` of type variable `Self`
generics_self_attributes.py:32:5: error[invalid-assignment] Object of type `LinkedList[int]` is not assignable to attribute `next` of type `OrdinalLinkedList | None`
"""
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.108"
version = "ty 1.0.0"
Loading