Skip to content

Commit 4255a24

Browse files
committed
regenerate conformance
2 parents 770b585 + cf943cc commit 4255a24

57 files changed

Lines changed: 315 additions & 744 deletions

File tree

Some content is hidden

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

conformance/results/mypy/generics_defaults_referential.toml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,18 @@ notes = """
33
Does not correctly handle defaults referencing other `TypeVar`s.
44
"""
55
output = """
6-
generics_defaults_referential.py:23: error: Expression is of type "type[slice[StartT, StopT, StepT]]", not "type[slice[int, int, int | None]]" [assert-type]
7-
generics_defaults_referential.py:38: error: Argument 1 to "Foo" has incompatible type "str"; expected "int" [arg-type]
8-
generics_defaults_referential.py:54: error: Type parameter "Start2T" has a default type that refers to one or more type variables that are out of scope [misc]
9-
generics_defaults_referential.py:61: error: Type variable S1 referenced in the default of S2 is unbound [misc]
10-
generics_defaults_referential.py:75: error: TypeVar default must be one of the constraint types [misc]
6+
generics_defaults_referential.py:37: error: Argument 1 to "Foo" has incompatible type "str"; expected "int" [arg-type]
7+
generics_defaults_referential.py:53: error: Type parameter "Start2T" has a default type that refers to one or more type variables that are out of scope [misc]
8+
generics_defaults_referential.py:60: error: Type variable S1 referenced in the default of S2 is unbound [misc]
9+
generics_defaults_referential.py:74: error: TypeVar default must be one of the constraint types [misc]
10+
generics_defaults_referential.py:77: error: TypeVar default must be one of the constraint types [misc]
1111
generics_defaults_referential.py:78: error: TypeVar default must be one of the constraint types [misc]
12-
generics_defaults_referential.py:79: error: TypeVar default must be one of the constraint types [misc]
13-
generics_defaults_referential.py:104: error: Expression is of type "Bar[int, list[Never]]", not "Bar[int, list[int]]" [assert-type]
12+
generics_defaults_referential.py:103: error: Expression is of type "Bar[int, list[Never]]", not "Bar[int, list[int]]" [assert-type]
1413
"""
1514
conformance_automated = "Fail"
1615
errors_diff = """
17-
Line 37: Expected 1 errors
18-
Line 69: Expected 1 errors
19-
Line 23: Unexpected errors ['generics_defaults_referential.py:23: error: Expression is of type "type[slice[StartT, StopT, StepT]]", not "type[slice[int, int, int | None]]" [assert-type]']
20-
Line 78: Unexpected errors ['generics_defaults_referential.py:78: error: TypeVar default must be one of the constraint types [misc]']
21-
Line 104: Unexpected errors ['generics_defaults_referential.py:104: error: Expression is of type "Bar[int, list[Never]]", not "Bar[int, list[int]]" [assert-type]']
16+
Line 36: Expected 1 errors
17+
Line 68: Expected 1 errors
18+
Line 77: Unexpected errors ['generics_defaults_referential.py:77: error: TypeVar default must be one of the constraint types [misc]']
19+
Line 103: Unexpected errors ['generics_defaults_referential.py:103: error: Expression is of type "Bar[int, list[Never]]", not "Bar[int, list[int]]" [assert-type]']
2220
"""

conformance/results/mypy/generics_type_erasure.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
conformant = "Partial"
22
notes = """
33
Infers `Node[Never]` instead of `Node[Any]` when argument is not provided.
4-
False negative on instance attribute access on `type(node)`.
54
"""
65
output = """
76
generics_type_erasure.py:19: error: Expression is of type "Node[Never]", not "Node[Any]" [assert-type]
@@ -15,7 +14,6 @@ generics_type_erasure.py:45: error: Access to generic instance variables via cla
1514
"""
1615
conformance_automated = "Fail"
1716
errors_diff = """
18-
Line 46: Expected 1 errors
1917
Line 19: Unexpected errors ['generics_type_erasure.py:19: error: Expression is of type "Node[Never]", not "Node[Any]" [assert-type]']
2018
Line 22: Unexpected errors ['generics_type_erasure.py:22: error: Expression is of type "Never", not "Any" [assert-type]']
2119
"""

conformance/results/pycroscope/aliases_implicit.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,12 @@ Line 113: Expected 1 errors
1313
Line 117: Expected 1 errors
1414
Line 118: Expected 1 errors
1515
Line 119: Expected 1 errors
16-
Line 68: Unexpected errors ['./aliases_implicit.py:68:16: .GoodTypeAlias9[<list containing [str, str]>, None] = (int, /, ****P) -> ~R is not equivalent to (int, str, str, /) -> None']
1716
Line 70: Unexpected errors ['./aliases_implicit.py:70:16: Any[from_another] is not equivalent to int | str | list[list[int]] | None']
18-
Line 72: Unexpected errors ['./aliases_implicit.py:72:16: .GoodTypeAlias13 = (**__P: **P) -> None is not equivalent to (...) -> None']
1917
Line 95: Unexpected errors ["./aliases_implicit.py:95:16: Cannot resolve subscripted annotation: <list containing [type 'int']> [invalid_annotation]"]
2018
Line 100: Unexpected errors ["./aliases_implicit.py:100:17: Annotated[type 'list', (<+list is_truthy None> == NullConstraint())] is always True because it does not provide __bool__ [type_always_true]"]
2119
"""
2220
output = """
23-
./aliases_implicit.py:68:16: .GoodTypeAlias9[<list containing [str, str]>, None] = (int, /, ****P) -> ~R is not equivalent to (int, str, str, /) -> None
2421
./aliases_implicit.py:70:16: Any[from_another] is not equivalent to int | str | list[list[int]] | None
25-
./aliases_implicit.py:72:16: .GoodTypeAlias13 = (**__P: **P) -> None is not equivalent to (...) -> None
2622
./aliases_implicit.py:77:8: Unrecognized annotation types.GenericAlias [invalid_annotation]
2723
./aliases_implicit.py:78:8: Expected 1 type arguments for type alias, got 2 [invalid_specialization]
2824
./aliases_implicit.py:79:8: Expected 1 type arguments for type alias, got 2 [invalid_specialization]

conformance/results/pycroscope/aliases_type_statement.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
conformant = "Partial"
22
notes = """
33
Fails to reject various weird annotations.
4+
Rejects a valid recursive generic type alias.
45
"""
56
conformance_automated = "Fail"
67
errors_diff = """
@@ -16,6 +17,7 @@ Line 45: Expected 1 errors
1617
Line 46: Expected 1 errors
1718
Line 47: Expected 1 errors
1819
Line 49: Expected 1 errors
20+
Line 61: Unexpected errors ['./aliases_type_statement.py:61:0: Unrecognized annotation typing._SpecialForm [invalid_annotation]']
1921
"""
2022
output = """
2123
./aliases_type_statement.py:17:0: typing.TypeAliasType has no attribute 'bit_count' [undefined_attribute]
@@ -26,6 +28,7 @@ output = """
2628
./aliases_type_statement.py:48:22: Annotated[type 'list', (<+list is_truthy None> == NullConstraint())] is always True because it does not provide __bool__ [type_always_true]
2729
./aliases_type_statement.py:53:22: Type alias cannot combine old-style TypeVar declarations with type statement parameters [invalid_type_alias]
2830
./aliases_type_statement.py:58:16: Type alias must declare type parameters in the type statement [invalid_type_alias]
31+
./aliases_type_statement.py:61:0: Unrecognized annotation typing._SpecialForm [invalid_annotation]
2932
./aliases_type_statement.py:68:6: Type argument str is not compatible with ~S@./aliases_type_statement.py.RecursiveTypeAlias2 [invalid_specialization]
3033
./aliases_type_statement.py:70:6: Type argument int is not compatible with ~T@./aliases_type_statement.py.RecursiveTypeAlias2 [invalid_specialization]
3134
./aliases_type_statement.py:73:0: Type alias RecursiveTypeAlias3 has a circular definition [invalid_type_alias]

conformance/results/pycroscope/aliases_typealiastype.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
conformant = "Partial"
2-
notes = """
3-
Rejects valid `ParamSpec` specialization.
4-
"""
5-
conformance_automated = "Fail"
1+
conformance_automated = "Pass"
62
errors_diff = """
7-
Line 39: Unexpected errors ["./aliases_typealiastype.py:39:4: Unrecognized annotation <list containing [type 'int', type 'str']> [invalid_annotation]"]
83
"""
94
output = """
105
./aliases_typealiastype.py:32:6: typing.TypeAliasType has no attribute 'other_attrib' [undefined_attribute]
11-
./aliases_typealiastype.py:39:4: Unrecognized annotation <list containing [type 'int', type 'str']> [invalid_annotation]
126
./aliases_typealiastype.py:40:4: Type argument int is not compatible with ~TStr@./aliases_typealiastype.py.GoodAlias5 [invalid_specialization]
137
./aliases_typealiastype.py:43:44: Type alias cannot combine old-style TypeVar declarations with type statement parameters [invalid_type_alias]
148
./aliases_typealiastype.py:44:44: Type alias must declare type parameters in the type statement [invalid_type_alias]
Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
conformant = "Partial"
2-
notes = """
3-
Does not support callback protocols with PEP 695 ParamSpec type parameters.
4-
"""
5-
conformance_automated = "Fail"
1+
conformance_automated = "Pass"
62
errors_diff = """
7-
Line 115: Unexpected errors ['./callables_annotation.py:115:38: Traceback (most recent call last):', './callables_annotation.py:115:4: Traceback (most recent call last):']
83
"""
94
output = """
105
./callables_annotation.py:25:4: Missing required positional argument at position 1 [incompatible_call]
@@ -19,10 +14,8 @@ output = """
1914
./callables_annotation.py:59:4: Ellipsis must be used directly in Callable[..., T], not in Callable[[...], T] [invalid_annotation]
2015
./callables_annotation.py:91:0: Incompatible assignment: expected (int, /, **Any[explicit]) -> str, got () -> str [incompatible_assignment]
2116
./callables_annotation.py:93:0: Incompatible assignment: expected (int, /, **Any[explicit]) -> str, got (*, a: int) -> str [incompatible_assignment]
22-
./callables_annotation.py:115:38: Traceback (most recent call last):
23-
./callables_annotation.py:115:4: Traceback (most recent call last):
2417
./callables_annotation.py:159:4: Incompatible assignment: expected ./callables_annotation.py.Proto5[Any[explicit]], got ./callables_annotation.py.Proto8 [incompatible_assignment]
25-
./callables_annotation.py:172:4: Incompatible assignment: expected .Callback2[Any[ellipsis_callable]] = (int, /, ****P) -> str, got () -> str [incompatible_assignment]
18+
./callables_annotation.py:172:4: Incompatible assignment: expected .Callback2[AnySig()] = (int, /, ****P) -> str, got () -> str [incompatible_assignment]
2619
./callables_annotation.py:187:4: Incompatible assignment: expected (str, /, **Any[explicit]) -> str, got (int, str, /) -> str [incompatible_assignment]
27-
./callables_annotation.py:189:4: Incompatible assignment: expected .CallbackWithStr[Any[ellipsis_callable]] = (str, /, ****P) -> str, got (int, str, /) -> str [incompatible_assignment]
20+
./callables_annotation.py:189:4: Incompatible assignment: expected .CallbackWithStr[AnySig()] = (str, /, ****P) -> str, got (int, str, /) -> str [incompatible_assignment]
2821
"""

conformance/results/pycroscope/callables_kwargs.toml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,13 @@ Incorrectly rejects assigning a callable without `**kwargs` to a callable whose
99
conformance_automated = "Fail"
1010
errors_diff = """
1111
Line 210: Expected 1 errors
12-
Line 212: Expected 1 errors
1312
Line 213: Expected 1 errors
14-
Line 215: Expected 1 errors
1513
Line 216: Expected 1 errors
1614
Line 217: Expected 1 errors
1715
Line 221: Expected 1 errors
18-
Line 223: Expected 1 errors
1916
Line 224: Expected 1 errors
20-
Line 226: Expected 1 errors
2117
Line 227: Expected 1 errors
2218
Line 228: Expected 1 errors
23-
Line 243: Expected 1 errors
24-
Line 244: Expected 1 errors
25-
Line 246: Expected 1 errors
26-
Line 247: Expected 1 errors
27-
Line 249: Expected 1 errors
28-
Line 250: Expected 1 errors
29-
Line 251: Expected 1 errors
30-
Line 252: Expected 1 errors
31-
Line 155: Unexpected errors ["./callables_kwargs.py:155:0: Incompatible assignment: expected callables_kwargs.TDProtocol7, got function 'callables_kwargs.func7' [incompatible_assignment]"]
32-
Line 156: Unexpected errors ["./callables_kwargs.py:156:0: Incompatible assignment: expected callables_kwargs.TDProtocol8, got function 'callables_kwargs.func7' [incompatible_assignment]"]
3319
"""
3420
output = """
3521
./callables_kwargs.py:55:4: In call to callables_kwargs.func1: Missing required argument 'v1' [incompatible_call]
@@ -46,6 +32,16 @@ output = """
4632
./callables_kwargs.py:131:21: Parameter v1 overlaps with TypedDict key in **kwargs [invalid_annotation]
4733
./callables_kwargs.py:142:12: Expected TypedDict type inside Unpack[] for **kwargs [invalid_annotation]
4834
./callables_kwargs.py:154:0: Incompatible assignment: expected callables_kwargs.TDProtocol6, got function 'callables_kwargs.func7' [incompatible_assignment]
49-
./callables_kwargs.py:155:0: Incompatible assignment: expected callables_kwargs.TDProtocol7, got function 'callables_kwargs.func7' [incompatible_assignment]
50-
./callables_kwargs.py:156:0: Incompatible assignment: expected callables_kwargs.TDProtocol8, got function 'callables_kwargs.func7' [incompatible_assignment]
35+
./callables_kwargs.py:212:4: Incompatible argument type for kwargs: expected dict[str, str] but got <dict containing {**{str?: object}}> [incompatible_argument]
36+
./callables_kwargs.py:215:4: Incompatible argument type for kwargs: expected dict[str, str] but got <dict containing {**{str?: object}}> [incompatible_argument]
37+
./callables_kwargs.py:223:4: Incompatible argument type for kwargs: expected dict[str, str] but got <dict containing {**{str?: object}}> [incompatible_argument]
38+
./callables_kwargs.py:226:4: Incompatible argument type for kwargs: expected dict[str, str] but got <dict containing {**{str?: object}}> [incompatible_argument]
39+
./callables_kwargs.py:243:4: In call to callables_kwargs.takes_name: **kwargs provided but not used [incompatible_call]
40+
./callables_kwargs.py:244:4: Incompatible argument type for kwargs: expected dict[str, str] but got <dict containing {**{str: int}}> [incompatible_argument]
41+
./callables_kwargs.py:246:4: In call to callables_kwargs.takes_name: **kwargs provided but not used [incompatible_call]
42+
./callables_kwargs.py:247:4: Incompatible argument type for kwargs: expected dict[str, str] but got <dict containing {**{str: int}}> [incompatible_argument]
43+
./callables_kwargs.py:249:4: In call to callables_kwargs.takes_closed: **kwargs provided but not used [incompatible_call]
44+
./callables_kwargs.py:250:4: In call to callables_kwargs.takes_closed: **kwargs provided but not used [incompatible_call]
45+
./callables_kwargs.py:251:4: Incompatible argument type for label: expected str but got int [incompatible_argument]
46+
./callables_kwargs.py:252:4: Incompatible argument type for label: expected str but got int [incompatible_argument]
5147
"""

conformance/results/pycroscope/callables_protocol.toml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
conformant = "Partial"
2-
notes = """
3-
Does not support callback protocols with PEP 695 ParamSpec type parameters.
4-
"""
5-
conformance_automated = "Fail"
1+
conformance_automated = "Pass"
62
errors_diff = """
7-
Line 179: Unexpected errors ['./callables_protocol.py:179:30: Traceback (most recent call last):', './callables_protocol.py:179:4: Traceback (most recent call last):']
83
"""
94
output = """
105
./callables_protocol.py:35:0: Incompatible assignment: expected ./callables_protocol.py.Proto1, got (*vals: tuple[bytes, ...], max_items: int | None) -> list[bytes] [incompatible_assignment]
@@ -17,8 +12,6 @@ output = """
1712
./callables_protocol.py:97:0: Incompatible assignment: expected ./callables_protocol.py.Proto4, got (x: int) -> None [incompatible_assignment]
1813
./callables_protocol.py:121:0: Incompatible assignment: expected ./callables_protocol.py.NotProto6, got (*vals: tuple[bytes, ...], max_len: int | None = None) -> list[bytes] [incompatible_assignment]
1914
./callables_protocol.py:169:0: Incompatible assignment: expected ./callables_protocol.py.Proto8, got (x: int) -> Any[explicit] [incompatible_assignment]
20-
./callables_protocol.py:179:30: Traceback (most recent call last):
21-
./callables_protocol.py:179:4: Traceback (most recent call last):
2215
./callables_protocol.py:186:4: Incompatible types in assignment to attribute 'other_attribute': expected int, got Literal['str'] [incompatible_assignment]
2316
./callables_protocol.py:187:4: ./callables_protocol.py.Proto9[**P@./callables_protocol.py.decorator1.<locals>.decorator1, +R@./callables_protocol.py.decorator1.<locals>.decorator1] has no attribute 'xxx' [undefined_attribute]
2417
./callables_protocol.py:197:6: ./callables_protocol.py.Proto9[(x: int) -> Any[unannotated], str] has no attribute 'other_attribute2' [undefined_attribute]

conformance/results/pycroscope/callables_subtyping.toml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
conformant = "Partial"
2-
notes = """
3-
Does not support callback protocols with PEP 695 ParamSpec type parameters.
4-
"""
5-
conformance_automated = "Fail"
1+
conformance_automated = "Pass"
62
errors_diff = """
7-
Line 205: Unexpected errors ['./callables_subtyping.py:205:30: Traceback (most recent call last):', './callables_subtyping.py:205:4: Traceback (most recent call last):']
8-
Line 214: Unexpected errors ['./callables_subtyping.py:214:4: Incompatible assignment: expected callables_subtyping.ProtocolWithP[**P@callables_subtyping.func7.<locals>.func7], got callables_subtyping.TypeAliasWithP[**P@callables_subtyping.func7.<locals>.func7] = (**__P: **P) -> None [incompatible_assignment]']
93
"""
104
output = """
115
./callables_subtyping.py:26:4: Incompatible assignment: expected (float | int, /) -> float | int, got (int, /) -> int [incompatible_assignment]
@@ -34,9 +28,6 @@ output = """
3428
./callables_subtyping.py:195:4: Incompatible assignment: expected callables_subtyping.IntKwargs6, got callables_subtyping.StrKwargs6 [incompatible_assignment]
3529
./callables_subtyping.py:196:4: Incompatible assignment: expected callables_subtyping.Standard6, got callables_subtyping.IntStrKwargs6 [incompatible_assignment]
3630
./callables_subtyping.py:197:4: Incompatible assignment: expected callables_subtyping.Standard6, got callables_subtyping.StrKwargs6 [incompatible_assignment]
37-
./callables_subtyping.py:205:30: Traceback (most recent call last):
38-
./callables_subtyping.py:205:4: Traceback (most recent call last):
39-
./callables_subtyping.py:214:4: Incompatible assignment: expected callables_subtyping.ProtocolWithP[**P@callables_subtyping.func7.<locals>.func7], got callables_subtyping.TypeAliasWithP[**P@callables_subtyping.func7.<locals>.func7] = (**__P: **P) -> None [incompatible_assignment]
4031
./callables_subtyping.py:236:4: Incompatible assignment: expected callables_subtyping.DefaultArg8, got callables_subtyping.NoDefaultArg8 [incompatible_assignment]
4132
./callables_subtyping.py:237:4: Incompatible assignment: expected callables_subtyping.DefaultArg8, got callables_subtyping.NoX8 [incompatible_assignment]
4233
./callables_subtyping.py:240:4: Incompatible assignment: expected callables_subtyping.NoDefaultArg8, got callables_subtyping.NoX8 [incompatible_assignment]

conformance/results/pycroscope/classes_classvar.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
conformant = "Partial"
2-
notes = """
3-
Does not reject use of `ClassVar` as a qualifier for a NamedTuple field.
4-
"""
5-
conformance_automated = "Fail"
1+
conformance_automated = "Pass"
62
errors_diff = """
7-
Line 94: Expected 1 errors
83
"""
94
output = """
105
./classes_classvar.py:40:10: Invalid type annotation (<class 'int'>, <class 'str'>) [invalid_annotation]
@@ -23,6 +18,7 @@ output = """
2318
./classes_classvar.py:79:7: ClassVar can only be used for assignments in class body [invalid_qualifier]
2419
./classes_classvar.py:80:19: ClassVar cannot be used in type aliases [invalid_qualifier]
2520
./classes_classvar.py:89:7: Unexpected ClassVar annotation [invalid_qualifier]
21+
./classes_classvar.py:94:7: ClassVar cannot be used for NamedTuple fields [invalid_qualifier]
2622
./classes_classvar.py:127:0: Cannot assign to class variable 'stats' via instance [incompatible_assignment]
2723
./classes_classvar.py:156:0: Incompatible assignment: expected ./classes_classvar.py.ProtoA, got ./classes_classvar.py.ProtoAImpl [incompatible_assignment]
2824
"""

0 commit comments

Comments
 (0)