Skip to content

Commit 4932db2

Browse files
committed
Update results for pyrefly 0.36.2.
1 parent 48ea301 commit 4932db2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+94
-212
lines changed

conformance/results/pyrefly/aliases_explicit.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ ERROR aliases_explicit.py:89:22-23: number literal cannot be used in annotations
2424
ERROR aliases_explicit.py:90:22-33: boolean operation cannot be used in annotations [invalid-annotation]
2525
ERROR aliases_explicit.py:91:22-32: f-string cannot be used in annotations [invalid-annotation]
2626
ERROR aliases_explicit.py:100:5-19: `TypeAlias[ListAlias, type[list[Unknown]]]` is not subscriptable [unsupported-operation]
27-
ERROR aliases_explicit.py:101:6-20: Expected a callable, got TypeAlias[ListOrSetAlias, type[list[Unknown] | set[Unknown]]] [not-callable]
27+
ERROR aliases_explicit.py:101:6-20: Expected a callable, got `TypeAlias[ListOrSetAlias, type[list[Unknown] | set[Unknown]]]` [not-callable]
2828
ERROR aliases_explicit.py:102:5-24: `TypeAlias[ListOrSetAlias, type[list[Unknown] | set[Unknown]]]` is not subscriptable [unsupported-operation]
2929
"""

conformance/results/pyrefly/aliases_implicit.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ ERROR aliases_implicit.py:115:10-24: Expected a type form, got instance of `Lite
2626
ERROR aliases_implicit.py:116:10-24: Expected a type form, got instance of `Literal[1]` [not-a-type]
2727
ERROR aliases_implicit.py:118:10-24: Expected a type form, got instance of `Literal['int']` [not-a-type]
2828
ERROR aliases_implicit.py:119:10-24: Expected a type form, got instance of `Literal['int | str']` [not-a-type]
29-
ERROR aliases_implicit.py:133:6-20: Expected a callable, got type[list[Unknown] | set[Unknown]] [not-callable]
29+
ERROR aliases_implicit.py:133:6-20: Expected a callable, got `type[list[Unknown] | set[Unknown]]` [not-callable]
3030
ERROR aliases_implicit.py:135:5-24: `type[list[Unknown] | set[Unknown]]` is not subscriptable [unsupported-operation]
3131
"""

conformance/results/pyrefly/aliases_recursive.toml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,12 @@ Line 39: Expected 1 errors
88
Line 50: Expected 1 errors
99
Line 51: Expected 1 errors
1010
Line 52: Expected 1 errors
11+
Line 63: Expected 1 errors
12+
Line 69: Expected 1 errors
1113
Line 72: Expected 1 errors
1214
Line 75: Expected 1 errors
13-
Line 30: Unexpected errors ["Expected a type form, got instance of `Literal['RecursiveTuple']` [not-a-type]"]
1415
Line 42: Unexpected errors ["Expected a type form, got instance of `Literal['RecursiveMapping']` [not-a-type]"]
15-
Line 58: Unexpected errors ['Expected a type form, got instance of `_SpecialForm` [not-a-type]']
16-
Line 59: Unexpected errors ['`type[list[Unknown]]` is not subscriptable [unsupported-operation]']
17-
Line 62: Unexpected errors ['`type[list[Unknown]]` is not subscriptable [unsupported-operation]']
18-
Line 65: Unexpected errors ['Expected a type form, got instance of `_SpecialForm` [not-a-type]']
19-
Line 67: Unexpected errors ['`type[list[Unknown]]` is not subscriptable [unsupported-operation]']
20-
Line 68: Unexpected errors ['`type[list[Unknown]]` is not subscriptable [unsupported-operation]']
2116
"""
2217
output = """
23-
ERROR aliases_recursive.py:30:36-52: Expected a type form, got instance of `Literal['RecursiveTuple']` [not-a-type]
2418
ERROR aliases_recursive.py:42:45-63: Expected a type form, got instance of `Literal['RecursiveMapping']` [not-a-type]
25-
ERROR aliases_recursive.py:58:26-54: Expected a type form, got instance of `_SpecialForm` [not-a-type]
26-
ERROR aliases_recursive.py:59:25-47: `type[list[Unknown]]` is not subscriptable [unsupported-operation]
27-
ERROR aliases_recursive.py:62:5-27: `type[list[Unknown]]` is not subscriptable [unsupported-operation]
28-
ERROR aliases_recursive.py:63:5-27: `type[list[Unknown]]` is not subscriptable [unsupported-operation]
29-
ERROR aliases_recursive.py:65:26-63: Expected a type form, got instance of `_SpecialForm` [not-a-type]
30-
ERROR aliases_recursive.py:67:5-32: `type[list[Unknown]]` is not subscriptable [unsupported-operation]
31-
ERROR aliases_recursive.py:68:5-34: `type[list[Unknown]]` is not subscriptable [unsupported-operation]
32-
ERROR aliases_recursive.py:69:5-32: `type[list[Unknown]]` is not subscriptable [unsupported-operation]
3319
"""

conformance/results/pyrefly/aliases_type_statement.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ Does not detect circular definitions.
66
"""
77
conformance_automated = "Fail"
88
errors_diff = """
9-
Line 26: Expected 1 errors
109
Line 82: Expected 1 errors
1110
Line 84: Expected 1 errors
1211
Lines 51, 52: Expected error (tag 'TA14')
1312
Lines 88, 89: Expected error (tag 'RTA6')
1413
"""
1514
output = """
1615
ERROR aliases_type_statement.py:17:1-21: Object of class `TypeAliasType` has no attribute `bit_count` [missing-attribute]
17-
ERROR aliases_type_statement.py:19:1-11: Expected a callable, got TypeAlias[GoodAlias1, type[int]] [not-callable]
16+
ERROR aliases_type_statement.py:19:1-11: Expected a callable, got `TypeAlias[GoodAlias1, type[int]]` [not-callable]
1817
ERROR aliases_type_statement.py:23:7-30: Object of class `TypeAliasType` has no attribute `other_attrib` [missing-attribute]
18+
ERROR aliases_type_statement.py:26:18-28: Cannot use scoped type alias `GoodAlias1` as a base class. Use a legacy type alias instead: `GoodAlias1: TypeAlias = type[int]` [invalid-inheritance]
1919
ERROR aliases_type_statement.py:31:22-32: Expected class object, got `TypeAliasType` [invalid-argument]
2020
ERROR aliases_type_statement.py:37:22-62: function call cannot be used in annotations [invalid-annotation]
2121
ERROR aliases_type_statement.py:38:22-32: list literal cannot be used in annotations [invalid-annotation]
Lines changed: 21 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,30 @@
11
conformant = "Unsupported"
22
conformance_automated = "Fail"
33
errors_diff = """
4-
Line 44: Expected 1 errors
54
Line 46: Expected 1 errors
5+
Line 47: Expected 1 errors
66
Line 48: Expected 1 errors
7-
Line 52: Expected 1 errors
8-
Line 53: Expected 1 errors
9-
Line 54: Expected 1 errors
10-
Line 55: Expected 1 errors
11-
Line 56: Expected 1 errors
12-
Line 57: Expected 1 errors
13-
Line 58: Expected 1 errors
14-
Line 59: Expected 1 errors
15-
Line 60: Expected 1 errors
16-
Line 61: Expected 1 errors
17-
Line 62: Expected 1 errors
18-
Line 63: Expected 1 errors
19-
Line 64: Expected 1 errors
20-
Line 17: Unexpected errors ['Argument `tuple[type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type]']
21-
Line 18: Unexpected errors ['Argument `tuple[type[TypeVar[S]], type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type]']
22-
Line 19: Unexpected errors ['Argument `tuple[type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type]']
23-
Line 22: Unexpected errors ["Expected a type form, got instance of `Literal['GoodAlias5[S, TStr, P]']` [not-a-type]"]
24-
Line 23: Unexpected errors ['Argument `tuple[type[TypeVar[S]], type[TypeVar[TStr]], type[ParamSpec[P]], type[TypeVarTuple[Ts]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type]']
25-
Line 35: Unexpected errors ['Expected a type form, got instance of `GenericAlias` [not-a-type]']
26-
Line 36: Unexpected errors ['Expected a type form, got instance of `GenericAlias` [not-a-type]']
27-
Line 37: Unexpected errors ['Expected a type form, got instance of `GenericAlias` [not-a-type]']
28-
Line 38: Unexpected errors ['Expected a type form, got instance of `GenericAlias` [not-a-type]']
29-
Line 39: Unexpected errors ['Expected a type form, got instance of `GenericAlias` [not-a-type]', 'Expected an iterable, got `type[tuple[int, str, int]]` [not-iterable]']
7+
Line 66: Expected 1 errors
308
"""
319
output = """
32-
ERROR aliases_typealiastype.py:17:63-67: Argument `tuple[type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type]
33-
ERROR aliases_typealiastype.py:18:73-79: Argument `tuple[type[TypeVar[S]], type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type]
34-
ERROR aliases_typealiastype.py:19:81-85: Argument `tuple[type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type]
35-
ERROR aliases_typealiastype.py:22:40-64: Expected a type form, got instance of `Literal['GoodAlias5[S, TStr, P]']` [not-a-type]
36-
ERROR aliases_typealiastype.py:23:17-33: Argument `tuple[type[TypeVar[S]], type[TypeVar[TStr]], type[ParamSpec[P]], type[TypeVarTuple[Ts]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type]
3710
ERROR aliases_typealiastype.py:32:7-30: Object of class `TypeAliasType` has no attribute `other_attrib` [missing-attribute]
38-
ERROR aliases_typealiastype.py:35:5-20: Expected a type form, got instance of `GenericAlias` [not-a-type]
39-
ERROR aliases_typealiastype.py:36:5-20: Expected a type form, got instance of `GenericAlias` [not-a-type]
40-
ERROR aliases_typealiastype.py:37:5-40: Expected a type form, got instance of `GenericAlias` [not-a-type]
41-
ERROR aliases_typealiastype.py:38:5-40: Expected a type form, got instance of `GenericAlias` [not-a-type]
42-
ERROR aliases_typealiastype.py:39:5-60: Expected a type form, got instance of `GenericAlias` [not-a-type]
43-
ERROR aliases_typealiastype.py:39:16-59: Expected an iterable, got `type[tuple[int, str, int]]` [not-iterable]
44-
ERROR aliases_typealiastype.py:40:5-30: Expected a type form, got instance of `GenericAlias` [not-a-type]
45-
ERROR aliases_typealiastype.py:43:61-65: Argument `tuple[type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type]
46-
ERROR aliases_typealiastype.py:45:57-65: Argument `tuple[type[TypeVar[S]], type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type]
47-
ERROR aliases_typealiastype.py:47:74-78: Argument `tuple[type[TypeVar[T]]]` is not assignable to parameter `type_params` with type `tuple[ParamSpec | TypeVar | TypeVarTuple, ...]` in function `typing.TypeAliasType.__new__` [bad-argument-type]
48-
ERROR aliases_typealiastype.py:66:47-57: `BadAlias21` is uninitialized [unbound-name]
11+
ERROR aliases_typealiastype.py:40:5-30: Type `int` is not assignable to upper bound `str` of type variable `TStr` [bad-specialization]
12+
ERROR aliases_typealiastype.py:43:40-47: Type variable `S` is out of scope for this `TypeAliasType` [type-alias-error]
13+
ERROR aliases_typealiastype.py:44:40-47: Type variable `S` is out of scope for this `TypeAliasType` [type-alias-error]
14+
ERROR aliases_typealiastype.py:45:45-65: Value for argument `type_params` must be a tuple literal [type-alias-error]
15+
ERROR aliases_typealiastype.py:52:40-80: function call cannot be used in annotations [invalid-annotation]
16+
ERROR aliases_typealiastype.py:53:40-50: list literal cannot be used in annotations [invalid-annotation]
17+
ERROR aliases_typealiastype.py:54:42-55: tuple literal cannot be used in annotations [invalid-annotation]
18+
ERROR aliases_typealiastype.py:55:42-65: list comprehension cannot be used in annotations [invalid-annotation]
19+
ERROR aliases_typealiastype.py:56:42-52: dict literal cannot be used in annotations [invalid-annotation]
20+
ERROR aliases_typealiastype.py:56:44-45: Could not find name `a` [unknown-name]
21+
ERROR aliases_typealiastype.py:56:49-50: Could not find name `b` [unknown-name]
22+
ERROR aliases_typealiastype.py:57:42-57: function call cannot be used in annotations [invalid-annotation]
23+
ERROR aliases_typealiastype.py:58:42-50: invalid subscript expression cannot be used in annotations [invalid-annotation]
24+
ERROR aliases_typealiastype.py:59:42-63: if expression cannot be used in annotations [invalid-annotation]
25+
ERROR aliases_typealiastype.py:60:42-46: Expected `BadAlias16` to be a type alias, got `Literal[3]` [type-alias-error]
26+
ERROR aliases_typealiastype.py:61:42-46: bool literal cannot be used in annotations [invalid-annotation]
27+
ERROR aliases_typealiastype.py:62:42-43: number literal cannot be used in annotations [invalid-annotation]
28+
ERROR aliases_typealiastype.py:63:42-53: boolean operation cannot be used in annotations [invalid-annotation]
29+
ERROR aliases_typealiastype.py:64:42-52: f-string cannot be used in annotations [invalid-annotation]
4930
"""

conformance/results/pyrefly/callables_kwargs.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ conformant = "Partial"
22
notes = """
33
Does not reject overlap between unpacked TypedDict kwarg and named parameters
44
"""
5-
conformance_automated = "Fail"
5+
conformance_automated = "Pass"
66
errors_diff = """
7-
Line 111: Expected 1 errors
87
"""
98
output = """
109
ERROR callables_kwargs.py:46:10-12: Missing argument `v1` in function `func1` [missing-argument]
@@ -24,6 +23,7 @@ ERROR callables_kwargs.py:65:17-22: Multiple values for argument `v1` in functio
2423
ERROR callables_kwargs.py:101:19-24: `(**kwargs: Unpack[TypedDict[TD2]]) -> None` is not assignable to `TDProtocol3` [bad-assignment]
2524
ERROR callables_kwargs.py:102:19-24: `(**kwargs: Unpack[TypedDict[TD2]]) -> None` is not assignable to `TDProtocol4` [bad-assignment]
2625
ERROR callables_kwargs.py:103:19-24: `(**kwargs: Unpack[TypedDict[TD2]]) -> None` is not assignable to `TDProtocol5` [bad-assignment]
26+
ERROR callables_kwargs.py:111:20-41: TypedDict key 'v1' in **kwargs overlaps with parameter 'v1' [bad-function-definition]
2727
ERROR callables_kwargs.py:122:21-30: `Unpack` in **kwargs annotation must be used only with a `TypedDict` [invalid-annotation]
2828
ERROR callables_kwargs.py:134:19-24: `(*, v1: int, v3: str, v2: str = '') -> None` is not assignable to `TDProtocol6` [bad-assignment]
2929
"""

conformance/results/pyrefly/constructors_call_metaclass.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ conformance_automated = "Pass"
33
errors_diff = """
44
"""
55
output = """
6-
ERROR constructors_call_metaclass.py:51:7-9: Missing argument `x` in function `Class3.__new__` [missing-argument]
7-
ERROR constructors_call_metaclass.py:65:7-9: Missing argument `x` in function `Class4.__new__` [missing-argument]
6+
ERROR constructors_call_metaclass.py:54:7-9: Missing argument `x` in function `Class3.__new__` [missing-argument]
7+
ERROR constructors_call_metaclass.py:68:7-9: Missing argument `x` in function `Class4.__new__` [missing-argument]
88
"""

conformance/results/pyrefly/constructors_callable.toml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,18 @@ Line 165: Unexpected errors ['assert_type(Class7[Any], Class7[str]) failed [asse
1818
Line 183: Unexpected errors ['assert_type(Class8[Any], Class8[str]) failed [assert-type]']
1919
"""
2020
output = """
21-
constructors_callable.py:36:12-16: revealed type: (x: int) -> Class1 [reveal-type]
2221
ERROR constructors_callable.py:38:3-5: Missing argument `x` [missing-argument]
2322
ERROR constructors_callable.py:39:3-8: Missing argument `x` [missing-argument]
2423
ERROR constructors_callable.py:39:4-5: Unexpected keyword argument `y` [unexpected-keyword]
25-
constructors_callable.py:49:12-16: revealed type: () -> Class2 [reveal-type]
2624
ERROR constructors_callable.py:51:4-5: Expected 0 positional arguments, got 1 [bad-argument-count]
2725
ERROR constructors_callable.py:62:23-29: Argument `type[Class3]` is not assignable to parameter `cb` with type `(*args: Unknown, **kwargs: Unknown) -> Class3` in function `accepts_callable` [bad-argument-type]
28-
constructors_callable.py:63:12-16: revealed type: (*args: Unknown, **kwargs: Unknown) -> Class3 [reveal-type]
29-
constructors_callable.py:77:12-16: revealed type: (x: int) -> int [reveal-type]
3026
ERROR constructors_callable.py:79:3-5: Missing argument `x` [missing-argument]
3127
ERROR constructors_callable.py:80:3-8: Missing argument `x` [missing-argument]
3228
ERROR constructors_callable.py:80:4-5: Unexpected keyword argument `y` [unexpected-keyword]
33-
constructors_callable.py:97:12-16: revealed type: (*args: Any, **kwargs: Any) -> NoReturn [reveal-type]
34-
constructors_callable.py:125:12-16: revealed type: () -> Class6Proxy [reveal-type]
3529
ERROR constructors_callable.py:127:4-5: Expected 0 positional arguments, got 1 [bad-argument-count]
36-
constructors_callable.py:142:12-20: revealed type: () -> Any [reveal-type]
3730
ERROR constructors_callable.py:144:8-9: Expected 0 positional arguments, got 1 [bad-argument-count]
38-
constructors_callable.py:161:12-163:2: revealed type: (x: int) -> Class7[Unknown] [reveal-type]
3931
ERROR constructors_callable.py:164:12-32: assert_type(Class7[Any], Class7[int]) failed [assert-type]
4032
ERROR constructors_callable.py:165:12-33: assert_type(Class7[Any], Class7[str]) failed [assert-type]
4133
ERROR constructors_callable.py:165:16-18: Argument `Literal['']` is not assignable to parameter `x` with type `int` [bad-argument-type]
42-
constructors_callable.py:182:12-16: revealed type: (x: list[Unknown], y: list[Unknown]) -> Class8[Unknown] [reveal-type]
4334
ERROR constructors_callable.py:183:12-41: assert_type(Class8[Any], Class8[str]) failed [assert-type]
44-
constructors_callable.py:193:12-16: revealed type: (x: list[@_], y: list[@_]) -> Class9 [reveal-type]
4535
"""

conformance/results/pyrefly/dataclasses_final.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Allows assignment to final attributes that are not initialized on the class
55
conformance_automated = "Fail"
66
errors_diff = """
77
Line 35: Expected 1 errors
8+
Line 37: Expected 1 errors
89
"""
910
output = """
1011
ERROR dataclasses_final.py:27:1-17: Cannot set field `final_classvar` [read-only]
1112
ERROR dataclasses_final.py:36:1-21: Cannot set field `final_with_default` [read-only]
12-
ERROR dataclasses_final.py:37:1-19: Instance-only attribute `final_no_default` of class `D` is not visible on the class [no-access]
1313
ERROR dataclasses_final.py:38:1-21: Cannot set field `final_with_default` [read-only]
1414
"""

conformance/results/pyrefly/dataclasses_postinit.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ conformance_automated = "Pass"
33
errors_diff = """
44
"""
55
output = """
6-
ERROR dataclasses_postinit.py:19:9-22: `__post_init__` type `BoundMethod[DC1, (self: Self@DC1, x: int, y: int) -> None]` is not assignable to expected type `(x: int, y: str) -> object` generated from the dataclass's `InitVar` fields [bad-function-definition]
6+
ERROR dataclasses_postinit.py:19:9-22: `__post_init__` type `BoundMethod[DC1, (self: DC1, x: int, y: int) -> None]` is not assignable to expected type `(x: int, y: str) -> object` generated from the dataclass's `InitVar` fields [bad-function-definition]
77
ERROR dataclasses_postinit.py:28:7-12: Object of class `DC1` has no attribute `x` [missing-attribute]
88
ERROR dataclasses_postinit.py:29:7-12: Object of class `DC1` has no attribute `y` [missing-attribute]
9-
ERROR dataclasses_postinit.py:36:9-22: `__post_init__` type `BoundMethod[DC2, (self: Self@DC2, x: int) -> None]` is not assignable to expected type `(x: int, y: str) -> object` generated from the dataclass's `InitVar` fields [bad-function-definition]
9+
ERROR dataclasses_postinit.py:36:9-22: `__post_init__` type `BoundMethod[DC2, (self: DC2, x: int) -> None]` is not assignable to expected type `(x: int, y: str) -> object` generated from the dataclass's `InitVar` fields [bad-function-definition]
1010
"""

0 commit comments

Comments
 (0)