Skip to content

Commit b45c105

Browse files
yangdanny97claude
andcommitted
regenerate conformance results after rebase
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent dd9df61 commit b45c105

4 files changed

Lines changed: 114 additions & 251 deletions

File tree

‎conformance/results/mypy/callables_kwargs.toml‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
conformant = "Partial"
22
notes = """
33
Allows callable without kwargs to be assigned to callable with unpacked kwargs.
4-
Does not support the `closed` and `extra_items` TypedDict class arguments.
4+
Does not support the `extra_items` TypedDict class argument.
55
Does not reject unpacking an open TypedDict in a call to a callable that has no `**kwargs`.
66
Does not reject unpacking an open TypedDict in a call to a callable whose `**kwargs` is typed with a closed TypedDict.
77
Does not check the type of an unpacked TypedDict's extra items against the target callable's `**kwargs` annotation.
@@ -10,12 +10,11 @@ Does not reject unpacking a TypedDict that sets `extra_items` in a call to a cal
1010
Does not reject unpacking a TypedDict that sets `extra_items` in a call to a callable whose `**kwargs` is typed with a closed TypedDict.
1111
"""
1212
output = """
13-
callables_kwargs.py:23: error: Unexpected keyword argument "closed" for "__init_subclass__" of "TypedDict" [call-arg]
1413
callables_kwargs.py:27: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]
1514
callables_kwargs.py:55: error: Missing named argument "v1" for "func1" [call-arg]
1615
callables_kwargs.py:55: error: Missing named argument "v3" for "func1" [call-arg]
1716
callables_kwargs.py:60: error: Unexpected keyword argument "v4" for "func1" [call-arg]
18-
callables_kwargs.py:61: error: Too many positional arguments for "func1" [misc]
17+
callables_kwargs.py:61: error: Too many positional arguments for "func1" [call-arg]
1918
callables_kwargs.py:67: error: Argument 1 to "func1" has incompatible type "**dict[str, str]"; expected "int" [arg-type]
2019
callables_kwargs.py:70: error: Argument 1 to "func1" has incompatible type "**dict[str, object]"; expected "int" [arg-type]
2120
callables_kwargs.py:70: error: Argument 1 to "func1" has incompatible type "**dict[str, object]"; expected "str" [arg-type]
@@ -31,8 +30,6 @@ callables_kwargs.py:123: error: Incompatible types in assignment (expression has
3130
callables_kwargs.py:123: note: "TDProtocol5.__call__" has type "def __call__(self, v1: int, v3: str) -> None"
3231
callables_kwargs.py:131: error: Overlap between parameter names and ** TypedDict items: "v1" [misc]
3332
callables_kwargs.py:142: error: Unpack item in ** parameter must be a TypedDict [misc]
34-
callables_kwargs.py:166: error: Unexpected keyword argument "closed" for "__init_subclass__" of "TypedDict" [call-arg]
35-
callables_kwargs.py:170: error: Unexpected keyword argument "closed" for "__init_subclass__" of "TypedDict" [call-arg]
3633
callables_kwargs.py:174: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]
3734
callables_kwargs.py:178: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]
3835
callables_kwargs.py:182: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]
@@ -60,10 +57,7 @@ Line 270: Expected 1 errors
6057
Line 271: Expected 1 errors
6158
Line 272: Expected 1 errors
6259
Line 273: Expected 1 errors
63-
Line 23: Unexpected errors ['callables_kwargs.py:23: error: Unexpected keyword argument "closed" for "__init_subclass__" of "TypedDict" [call-arg]']
6460
Line 27: Unexpected errors ['callables_kwargs.py:27: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]']
65-
Line 166: Unexpected errors ['callables_kwargs.py:166: error: Unexpected keyword argument "closed" for "__init_subclass__" of "TypedDict" [call-arg]']
66-
Line 170: Unexpected errors ['callables_kwargs.py:170: error: Unexpected keyword argument "closed" for "__init_subclass__" of "TypedDict" [call-arg]']
6761
Line 174: Unexpected errors ['callables_kwargs.py:174: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]']
6862
Line 178: Unexpected errors ['callables_kwargs.py:178: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]']
6963
Line 182: Unexpected errors ['callables_kwargs.py:182: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]']

‎conformance/results/pyrefly/callables_kwargs.toml‎

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ conformant = "Partial"
22
notes = """
33
Does not reject unpacking an open TypedDict in a call to a callable that has no `**kwargs`.
44
Does not reject unpacking an open TypedDict in a call to a callable whose `**kwargs` is typed with a closed TypedDict.
5-
Does not check the type of an unpacked TypedDict's extra items against the target callable's `**kwargs` annotation.
6-
Does not check the type of an unpacked TypedDict's extra items against the target callable's named keyword parameters.
7-
Does not reject unpacking a TypedDict that sets `extra_items` in a call to a callable that has no `**kwargs`.
8-
Does not reject unpacking a TypedDict that sets `extra_items` in a call to a callable whose `**kwargs` is typed with a closed TypedDict.
9-
Incorrectly rejects assigning a callable without `**kwargs` to a callable whose `**kwargs` is typed with a TypedDict that sets `extra_items=Never`.
5+
Does not treat an open TypedDict as having extra items of type `object` when checking against the target callable's `**kwargs` annotation.
106
"""
117
conformance_automated = "Fail"
128
errors_diff = """
@@ -22,15 +18,6 @@ Line 241: Expected 1 errors
2218
Line 243: Expected 1 errors
2319
Line 244: Expected 1 errors
2420
Line 245: Expected 1 errors
25-
Line 264: Expected 1 errors
26-
Line 265: Expected 1 errors
27-
Line 267: Expected 1 errors
28-
Line 268: Expected 1 errors
29-
Line 270: Expected 1 errors
30-
Line 271: Expected 1 errors
31-
Line 272: Expected 1 errors
32-
Line 273: Expected 1 errors
33-
Line 156: Unexpected errors ["`(*, v1: int, v3: str, v2: str = '') -> None` is not assignable to `TDProtocol8` [bad-assignment]"]
3421
"""
3522
output = """
3623
ERROR callables_kwargs.py:55:10-12: Missing argument `v1` in function `func1` [missing-argument]
@@ -50,5 +37,12 @@ ERROR callables_kwargs.py:123:19-24: `(**kwargs: Unpack[TD2]) -> None` is not as
5037
ERROR callables_kwargs.py:131:20-41: TypedDict key 'v1' in **kwargs overlaps with parameter 'v1' [bad-function-definition]
5138
ERROR callables_kwargs.py:142:21-30: `Unpack` in **kwargs annotation must be used only with a `TypedDict` [invalid-annotation]
5239
ERROR callables_kwargs.py:154:19-24: `(*, v1: int, v3: str, v2: str = '') -> None` is not assignable to `TDProtocol6` [bad-assignment]
53-
ERROR callables_kwargs.py:156:19-24: `(*, v1: int, v3: str, v2: str = '') -> None` is not assignable to `TDProtocol8` [bad-assignment]
40+
ERROR callables_kwargs.py:264:16-23: `TDExtraItems` may contain extra items of type `int`, which cannot be unpacked into a callable that accepts no extra keyword arguments in function `takes_name` [unexpected-keyword]
41+
ERROR callables_kwargs.py:265:27-34: Extra items of type `int` are not assignable to parameter `kwargs` with type `str` in function `takes_name_str_kwargs` [bad-argument-type]
42+
ERROR callables_kwargs.py:267:16-24: `TDExtraItems` may contain extra items of type `int`, which cannot be unpacked into a callable that accepts no extra keyword arguments in function `takes_name` [unexpected-keyword]
43+
ERROR callables_kwargs.py:268:27-35: Extra items of type `int` are not assignable to parameter `kwargs` with type `str` in function `takes_name_str_kwargs` [bad-argument-type]
44+
ERROR callables_kwargs.py:270:18-25: `TDExtraItems` may contain extra items of type `int`, which cannot be unpacked into a callable that accepts no extra keyword arguments in function `takes_closed` [unexpected-keyword]
45+
ERROR callables_kwargs.py:271:18-26: `TDExtraItems` may contain extra items of type `int`, which cannot be unpacked into a callable that accepts no extra keyword arguments in function `takes_closed` [unexpected-keyword]
46+
ERROR callables_kwargs.py:272:37-44: Extra items of type `int` are not assignable to parameter `label` with type `str` in function `takes_optional_label_int_kwargs` [bad-argument-type]
47+
ERROR callables_kwargs.py:273:37-45: Extra items of type `int` are not assignable to parameter `label` with type `str` in function `takes_optional_label_int_kwargs` [bad-argument-type]
5448
"""

‎conformance/results/pyright/callables_kwargs.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ callables_kwargs.py:122:19 - error: Type "(**kwargs: **TD2) -> None" is not assi
2929
    Extra parameter "v3" (reportAssignmentType)
3030
callables_kwargs.py:123:19 - error: Type "(**kwargs: **TD2) -> None" is not assignable to declared type "TDProtocol5"
3131
  Type "(**kwargs: **TD2) -> None" is not assignable to type "(v1: int, v3: str) -> None"
32-
    Function accepts too many positional parameters; expected 0 but received 2
33-
      Extra parameter "v1"
34-
      Extra parameter "v3" (reportAssignmentType)
32+
    Function accepts too few positional parameters; expected 2 but received 0
33+
      Parameter "v1" is missing default argument
34+
      Parameter "v3" is missing default argument (reportAssignmentType)
3535
callables_kwargs.py:131:30 - error: Typed dictionary overlaps with keyword parameter: v1 (reportGeneralTypeIssues)
3636
callables_kwargs.py:142:21 - error: Expected TypedDict type argument for Unpack (reportGeneralTypeIssues)
3737
callables_kwargs.py:154:19 - error: Type "(*, v1: int, v3: str, v2: str = "") -> None" is not assignable to declared type "TDProtocol6"

0 commit comments

Comments
 (0)