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
88 changes: 36 additions & 52 deletions conformance/results/results.html

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

6 changes: 1 addition & 5 deletions conformance/results/ty/aliases_type_statement.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
conformance_automated = "Fail"
conformant = "Partial"
notes = """
Does not reject circular definitions of type aliases.
Does not support `type` statements generic over `TypeVarTuple`s.
Does not reject a generic type alias that recursively specializes itself with different type arguments.
"""
errors_diff = """
Line 75: Expected 1 errors
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']
"""
output = """
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
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`
Expand Down
13 changes: 5 additions & 8 deletions conformance/results/ty/aliases_typealiastype.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
conformance_automated = "Fail"
conformant = "Partial"
notes = """
Does not reject specializing a type parameter in a generic type alias with a type inconsistent with the parameter's upper bound.
Does not reject declaring a type alias with a type variable that is not in scope.
Does not reject declaring a type alias with a non-literal tuple passed to the `type_params` parameter.
Does not reject cyclically defined type aliases.
Does not reject cyclically defined `TypeAliasType` aliases.
"""
errors_diff = """
Line 40: Expected 1 errors
Line 43: Expected 1 errors
Line 44: Expected 1 errors
Line 45: Expected 1 errors
Line 46: Expected 1 errors
Line 47: Expected 1 errors
Line 48: Expected 1 errors
"""
output = """
aliases_typealiastype.py:32:7: error[unresolved-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`
aliases_typealiastype.py:45:57: error[invalid-type-alias-type] The `type_params` argument to `TypeAliasType` must be a tuple literal
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/callables_annotation.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
conformance_automated = "Fail"
conformant = "Partial"
notes = """
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`.
"""
conformance_automated = "Pass"
errors_diff = """
Line 159: Expected 1 errors
"""
output = """
callables_annotation.py:25:5: error[missing-argument] No argument provided for required parameter 2
Expand All @@ -23,6 +18,7 @@ callables_annotation.py:58:14: error[invalid-type-form] The first argument to `C
callables_annotation.py:59:14: error[invalid-type-form] `[...]` is not a valid parameter list for `Callable`: Did you mean `Callable[..., int]`?
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`
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`
callables_annotation.py:159:25: error[invalid-assignment] Object of type `Proto8` is not assignable to `Proto5[Any]`
callables_annotation.py:172:26: error[invalid-assignment] Object of type `() -> str` is not assignable to `(int, /, *args: Any, **kwargs: Any) -> str`
callables_annotation.py:187:48: error[invalid-assignment] Object of type `(int, str, /) -> str` is not assignable to `(str, /, *args: Any, **kwargs: Any) -> str`
callables_annotation.py:189:32: error[invalid-assignment] Object of type `(int, str, /) -> str` is not assignable to `(str, /, *args: Any, **kwargs: Any) -> str`
Expand Down
Loading