Skip to content
Open
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
15 changes: 4 additions & 11 deletions conformance/results/results.html

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

2 changes: 1 addition & 1 deletion conformance/results/ty/aliases_explicit.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ aliases_explicit.py:89:22: error[invalid-type-form] Int literals are not allowed
aliases_explicit.py:90:22: error[invalid-type-form] Boolean operations are not allowed in type alias definitions
aliases_explicit.py:91:22: error[invalid-type-form] F-strings are not allowed in type alias definitions
aliases_explicit.py:100:5: error[not-subscriptable] Cannot subscript non-generic type `list[Unknown]`
aliases_explicit.py:101:6: error[call-non-callable] Object of type `UnionType` is not callable
aliases_explicit.py:101:6: error[not-callable] Object of type `UnionType` is not callable
aliases_explicit.py:102:5: error[not-subscriptable] Cannot subscript non-generic type `list[Unknown] | set[Unknown]`
"""
2 changes: 1 addition & 1 deletion conformance/results/ty/aliases_implicit.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ aliases_implicit.py:116:10: error[invalid-type-form] Variable `BadTypeAlias11` c
aliases_implicit.py:117:10: error[invalid-type-form] Variable `BadTypeAlias12` cannot be used as a type
aliases_implicit.py:118:10: error[invalid-type-form] Variable `BadTypeAlias13` cannot be used as a type: Variable of type `Literal["int"]` is not allowed in a parameter annotation
aliases_implicit.py:119:10: error[invalid-type-form] Variable of type `Literal["int | str"]` is not allowed in a parameter annotation
aliases_implicit.py:133:6: error[call-non-callable] Object of type `UnionType` is not callable
aliases_implicit.py:133:6: error[not-callable] Object of type `UnionType` is not callable
aliases_implicit.py:135:5: error[not-subscriptable] Cannot subscript non-generic type `list[Unknown] | set[Unknown]`
"""
2 changes: 1 addition & 1 deletion conformance/results/ty/aliases_newtype.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ aliases_newtype.py:12:14: error[invalid-assignment] Object of type `Literal[42]`
aliases_newtype.py:18:11: error[invalid-assignment] Object of type `<NewType pseudo-class 'UserId'>` is not assignable to `type`
aliases_newtype.py:23:16: error[invalid-argument-type] Argument to function `isinstance` is incorrect: Expected `_ClassInfo`, found `<NewType pseudo-class 'UserId'>`
aliases_newtype.py:26:21: error[invalid-base] Cannot subclass an instance of NewType
aliases_newtype.py:35:20: error[mismatched-type-name] The name passed to `NewType` must match the variable it is assigned to: Expected "GoodName", got "BadName"
aliases_newtype.py:35:20: error[mismatched-newtype-name] The name passed to `NewType` must match the variable it is assigned to: Expected "GoodName", got "BadName"
aliases_newtype.py:41:6: error[invalid-type-form] `GoodNewType1` is a `NewType` and cannot be specialized
aliases_newtype.py:47:38: error[invalid-newtype] invalid base for `typing.NewType`: type `int | str`
aliases_newtype.py:50:38: error[invalid-newtype] invalid base for `typing.NewType`: A `NewType` base cannot be generic
Expand Down
6 changes: 3 additions & 3 deletions conformance/results/ty/aliases_type_statement.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ conformance_automated = "Pass"
errors_diff = """
"""
output = """
aliases_type_statement.py:17:1: error[unresolved-attribute] Object of type `TypeAliasType` has no attribute `bit_count`
aliases_type_statement.py:19:1: error[call-non-callable] Object of type `TypeAliasType` is not callable
aliases_type_statement.py:23:7: error[unresolved-attribute] Object of type `TypeAliasType` has no attribute `other_attrib`
aliases_type_statement.py:17:1: error[missing-attribute] Object of type `TypeAliasType` has no attribute `bit_count`
aliases_type_statement.py:19:1: error[not-callable] Object of type `TypeAliasType` is not callable
aliases_type_statement.py:23:7: error[missing-attribute] Object of type `TypeAliasType` has no attribute `other_attrib`
aliases_type_statement.py:26:18: error[invalid-base] Invalid class base with type `TypeAliasType`
aliases_type_statement.py:31:22: error[invalid-argument-type] Argument to function `isinstance` is incorrect: Expected `_ClassInfo`, found `TypeAliasType`
aliases_type_statement.py:37:22: error[invalid-type-form] Function calls are not allowed in type alias definitions
Expand Down
2 changes: 1 addition & 1 deletion conformance/results/ty/aliases_typealiastype.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ conformance_automated = "Pass"
errors_diff = """
"""
output = """
aliases_typealiastype.py:32:7: error[unresolved-attribute] Object of type `TypeAliasType` has no attribute `other_attrib`
aliases_typealiastype.py:32:7: error[missing-attribute] Object of type `TypeAliasType` has no attribute `other_attrib`
aliases_typealiastype.py:40:21: error[invalid-type-arguments] Type `int` is not assignable to upper bound `str` of type variable `TStr@GoodAlias5`
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`
Expand Down
8 changes: 4 additions & 4 deletions conformance/results/ty/annotations_generators.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ conformance_automated = "Pass"
errors_diff = """
"""
output = """
annotations_generators.py:51:21: error[invalid-return-type] Function can implicitly return `None`, which is not assignable to return type `C`
annotations_generators.py:54:16: error[invalid-return-type] Return type does not match returned value: expected `C`, found `Literal[False]`
annotations_generators.py:51:21: error[invalid-implicit-return] Function can implicitly return `None`, which is not assignable to return type `C`
annotations_generators.py:54:16: error[invalid-explicit-return] Return type does not match returned value: expected `C`, found `Literal[False]`
annotations_generators.py:57:15: error[invalid-yield] Yield type `Literal[3]` does not match annotated yield type `A`
annotations_generators.py:66:15: error[invalid-yield] Yield type `Literal[3]` does not match annotated yield type `A`
annotations_generators.py:75:11: error[invalid-yield] Yield type `B` does not match annotated yield type `A`
annotations_generators.py:86:21: error[invalid-return-type] Return type does not match returned value: expected `int`, found `types.GeneratorType`
annotations_generators.py:91:27: error[invalid-return-type] Return type does not match returned value: expected `int`, found `types.AsyncGeneratorType`
annotations_generators.py:86:21: error[invalid-generator-return-type] Return type does not match returned value: expected `int`, found `types.GeneratorType`
annotations_generators.py:91:27: error[invalid-generator-return-type] Return type does not match returned value: expected `int`, found `types.AsyncGeneratorType`
annotations_generators.py:118:16: error[invalid-yield] Yield type `A` does not match annotated yield type `B`
annotations_generators.py:119:16: error[invalid-yield] Yield type `int` does not match annotated yield type `B`
annotations_generators.py:135:16: error[invalid-yield] Send type `int` does not match annotated send type `str`
Expand Down
4 changes: 2 additions & 2 deletions conformance/results/ty/callables_protocol.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ callables_protocol.py:97:16: error[invalid-assignment] Object of type `def cb4_b
callables_protocol.py:121:18: error[invalid-assignment] Object of type `def cb6_bad1(*vals: bytes, max_len: int | None = None) -> list[bytes]` is not assignable to `NotProto6`
callables_protocol.py:169:7: error[invalid-assignment] Object of type `def cb8_bad1(x: int) -> Any` is not assignable to `Proto8`
callables_protocol.py:186:5: error[invalid-assignment] Object of type `Literal["str"]` is not assignable to attribute `other_attribute` of type `int`
callables_protocol.py:187:5: error[unresolved-attribute] Unresolved attribute `xxx` on type `Proto9[P@decorator1, R@decorator1]`
callables_protocol.py:197:7: error[unresolved-attribute] Object of type `Proto9[(x: int), str]` has no attribute `other_attribute2`
callables_protocol.py:187:5: error[missing-attribute] Unresolved attribute `xxx` on type `Proto9[P@decorator1, R@decorator1]`
callables_protocol.py:197:7: error[missing-attribute] Object of type `Proto9[(x: int), str]` has no attribute `other_attribute2`
callables_protocol.py:238:8: error[invalid-assignment] Object of type `def cb11_bad1(x: int, y: str, /) -> Any` is not assignable to `Proto11`
callables_protocol.py:260:8: error[invalid-assignment] Object of type `def cb12_bad1(*args: Any, kwarg0: Any) -> None` is not assignable to `Proto12`
callables_protocol.py:284:27: error[invalid-assignment] Object of type `def cb13_no_default(path: str) -> str` is not assignable to `Proto13_Default`
Expand Down
4 changes: 2 additions & 2 deletions conformance/results/ty/classes_override.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ classes_override.py:65:9: error[invalid-explicit-override] Method `method4` is d
classes_override.py:79:9: error[invalid-explicit-override] Method `static_method1` is decorated with `@override` but does not override anything
classes_override.py:84:9: error[invalid-explicit-override] Method `class_method1` is decorated with `@override` but does not override anything
classes_override.py:89:9: error[invalid-explicit-override] Method `property1` is decorated with `@override` but does not override anything
classes_override.py:135:9: error[invalid-method-override] Invalid override of method `__init__`: Definition is incompatible with `ParentC.__init__`
classes_override.py:138:9: error[invalid-method-override] Invalid override of method `__new__`: Definition is incompatible with `ParentC.__new__`
classes_override.py:135:9: error[incompatible-method-override] Invalid override of method `__init__`: Definition is incompatible with `ParentC.__init__`
classes_override.py:138:9: error[incompatible-method-override] Invalid override of method `__new__`: Definition is incompatible with `ParentC.__new__`
"""
4 changes: 2 additions & 2 deletions conformance/results/ty/dataclasses_hash.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ conformance_automated = "Pass"
errors_diff = """
"""
output = """
dataclasses_hash.py:17:1: error[call-non-callable] Object of type `None` is not callable
dataclasses_hash.py:17:1: error[not-callable] Object of type `None` is not callable
dataclasses_hash.py:18:16: error[invalid-assignment] Object of type `DC1` is not assignable to `Hashable`
dataclasses_hash.py:39:1: error[call-non-callable] Object of type `None` is not callable
dataclasses_hash.py:39:1: error[not-callable] Object of type `None` is not callable
dataclasses_hash.py:40:16: error[invalid-assignment] Object of type `DC3` is not assignable to `Hashable`
"""
4 changes: 2 additions & 2 deletions conformance/results/ty/dataclasses_inheritance.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ conformance_automated = "Pass"
errors_diff = """
"""
output = """
dataclasses_inheritance.py:62:5: error[invalid-attribute-override] Invalid override of attribute `x`: class variable cannot override instance variable `DC6.x`
dataclasses_inheritance.py:66:5: error[invalid-attribute-override] Invalid override of attribute `y`: instance variable cannot override class variable `DC6.y`
dataclasses_inheritance.py:62:5: error[incompatible-attribute-override] Invalid override of attribute `x`: class variable cannot override instance variable `DC6.x`
dataclasses_inheritance.py:66:5: error[incompatible-attribute-override] Invalid override of attribute `y`: instance variable cannot override class variable `DC6.y`
"""
2 changes: 1 addition & 1 deletion conformance/results/ty/dataclasses_match_args.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ conformance_automated = "Pass"
errors_diff = """
"""
output = """
dataclasses_match_args.py:42:1: error[unresolved-attribute] Class `DC4` has no attribute `__match_args__`
dataclasses_match_args.py:42:1: error[missing-attribute] Class `DC4` has no attribute `__match_args__`
"""
8 changes: 4 additions & 4 deletions conformance/results/ty/dataclasses_postinit.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ conformance_automated = "Pass"
errors_diff = """
"""
output = """
dataclasses_postinit.py:19:9: error[invalid-dataclass] Invalid `__post_init__` signature for dataclass `DC1`
dataclasses_postinit.py:28:7: error[unresolved-attribute] Object of type `DC1` has no attribute `x`
dataclasses_postinit.py:29:7: error[unresolved-attribute] Object of type `DC1` has no attribute `y`
dataclasses_postinit.py:36:9: error[invalid-dataclass] Invalid `__post_init__` signature for dataclass `DC2`
dataclasses_postinit.py:19:9: error[invalid-dataclass-post-init] Invalid `__post_init__` signature for dataclass `DC1`
dataclasses_postinit.py:28:7: error[missing-attribute] Object of type `DC1` has no attribute `x`
dataclasses_postinit.py:29:7: error[missing-attribute] Object of type `DC1` has no attribute `y`
dataclasses_postinit.py:36:9: error[invalid-dataclass-post-init] Invalid `__post_init__` signature for dataclass `DC2`
"""
8 changes: 4 additions & 4 deletions conformance/results/ty/dataclasses_slots.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ errors_diff = """
"""
output = """
dataclasses_slots.py:11:7: error[invalid-dataclass] Dataclass `DC1` cannot combine `slots=True` with manually assigned `__slots__`
dataclasses_slots.py:25:9: error[unresolved-attribute] Unresolved attribute `y` on type `Self@__init__`
dataclasses_slots.py:38:9: error[unresolved-attribute] Unresolved attribute `y` on type `Self@__init__`
dataclasses_slots.py:66:1: error[unresolved-attribute] Class `DC6` has no attribute `__slots__`
dataclasses_slots.py:69:1: error[unresolved-attribute] Object of type `DC6` has no attribute `__slots__`
dataclasses_slots.py:25:9: error[missing-attribute] Unresolved attribute `y` on type `Self@__init__`
dataclasses_slots.py:38:9: error[missing-attribute] Unresolved attribute `y` on type `Self@__init__`
dataclasses_slots.py:66:1: error[missing-attribute] Class `DC6` has no attribute `__slots__`
dataclasses_slots.py:69:1: error[missing-attribute] Object of type `DC6` has no attribute `__slots__`
"""
6 changes: 3 additions & 3 deletions conformance/results/ty/dataclasses_usage.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ 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:62:5: error[dataclass-field-order] Required field `b` cannot be defined after fields with default values
dataclasses_usage.py:68:5: error[dataclass-field-order] Required field `b` cannot be defined after fields with default values
dataclasses_usage.py:74:5: error[dataclass-field-order] Required field `b` cannot be defined after fields with default values
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: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
Expand Down
2 changes: 1 addition & 1 deletion conformance/results/ty/enums_definition.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ errors_diff = """
output = """
enums_definition.py:25:32: error[too-many-positional-arguments] Too many positional arguments to function `Enum`: expected 2, got 4
enums_definition.py:34:33: error[invalid-type-form] Type arguments for `Literal` must be `None`, a literal value (int, bool, str, or bytes), or an enum member
enums_definition.py:92:1: error[unresolved-attribute] Class `Color12` has no attribute `BLUE`
enums_definition.py:92:1: error[missing-attribute] Class `Color12` has no attribute `BLUE`
"""
2 changes: 1 addition & 1 deletion conformance/results/ty/generics_basic.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ errors_diff = """
output = """
generics_basic.py:40:5: error[invalid-argument-type] Argument to function `concat` is incorrect: Inferred lower bound `str | bytes` does not satisfy constraints (`str`, `bytes`) of type variable `AnyStr`
generics_basic.py:41:5: error[invalid-argument-type] Argument to function `concat` is incorrect: Inferred lower bound `bytes | str` does not satisfy constraints (`str`, `bytes`) of type variable `AnyStr`
generics_basic.py:49:44: error[invalid-legacy-type-variable] A `TypeVar` cannot have exactly one constraint
generics_basic.py:49:44: error[invalid-type-variable-constraints] A `TypeVar` cannot have exactly one constraint
generics_basic.py:55:53: error[invalid-type-variable-constraints] TypeVar constraint cannot be generic
generics_basic.py:69:5: error[invalid-argument-type] Argument to function `concat` is incorrect: Inferred lower bound `MyStr | bytes` does not satisfy constraints (`str`, `bytes`) of type variable `AnyStr`
generics_basic.py:121:13: error[invalid-generic-class] Type parameter `T` cannot appear multiple times in `Generic` subscription
Expand Down
Loading