You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2678723
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: conformance/results/mypy/callables_kwargs.toml
+4-9Lines changed: 4 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -27,18 +27,13 @@ callables_kwargs.py:104: note: "TDProtocol5.__call__" has type "def __call__(sel
27
27
callables_kwargs.py:112: error: Overlap between parameter names and ** TypedDict items: "v1" [misc]
28
28
callables_kwargs.py:123: error: Unpack item in ** parameter must be a TypedDict [misc]
29
29
callables_kwargs.py:145: error: Unexpected keyword argument "closed" for "__init_subclass__" of "TypedDict" [call-arg]
30
-
callables_kwargs.py:149: error: Unexpected keyword argument "closed" for "__init_subclass__" of "TypedDict" [call-arg]
31
-
callables_kwargs.py:153: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]
32
-
callables_kwargs.py:193: error: Name "func10" already defined on line 180 [no-redef]
30
+
callables_kwargs.py:149: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]
33
31
"""
34
32
conformance_automated = "Fail"
35
33
errors_diff = """
36
34
Line 135: Expected 1 errors
37
-
Line 176: Expected 1 errors
38
-
Line 194: Expected 1 errors
39
-
Line 195: Expected 1 errors
35
+
Line 184: Expected 1 errors
36
+
Line 185: Expected 1 errors
40
37
Line 145: Unexpected errors ['callables_kwargs.py:145: error: Unexpected keyword argument "closed" for "__init_subclass__" of "TypedDict" [call-arg]']
41
-
Line 149: Unexpected errors ['callables_kwargs.py:149: error: Unexpected keyword argument "closed" for "__init_subclass__" of "TypedDict" [call-arg]']
42
-
Line 153: Unexpected errors ['callables_kwargs.py:153: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]']
43
-
Line 193: Unexpected errors ['callables_kwargs.py:193: error: Name "func10" already defined on line 180 [no-redef]']
38
+
Line 149: Unexpected errors ['callables_kwargs.py:149: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]']
Copy file name to clipboardExpand all lines: conformance/results/pyright/callables_kwargs.toml
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -34,13 +34,10 @@ callables_kwargs.py:123:21 - error: Expected TypedDict type argument for Unpack
34
34
callables_kwargs.py:135:19 - error: Type "(*, v1: int, v3: str, v2: str = "") -> None" is not assignable to declared type "TDProtocol6"
35
35
Type "(*, v1: int, v3: str, v2: str = "") -> None" is not assignable to type "(**kwargs: **TD2) -> None"
36
36
Parameter "**kwargs" has no corresponding parameter (reportAssignmentType)
37
-
callables_kwargs.py:180:5 - error: Function declaration "func10" is obscured by a declaration of the same name (reportRedeclaration)
38
-
callables_kwargs.py:195:29 - error: Argument of type "int" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs"
37
+
callables_kwargs.py:185:29 - error: Argument of type "int" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs"
39
38
"int" is not assignable to "str" (reportArgumentType)
40
39
"""
41
40
conformance_automated = "Fail"
42
41
errors_diff = """
43
-
Line 176: Expected 1 errors
44
-
Line 194: Expected 1 errors
45
-
Line 180: Unexpected errors ['callables_kwargs.py:180:5 - error: Function declaration "func10" is obscured by a declaration of the same name (reportRedeclaration)']
Copy file name to clipboardExpand all lines: conformance/results/ty/callables_kwargs.toml
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,6 @@
1
-
conformant = "Partial"
2
-
notes = """
3
-
Does not reject passing unpacked kwargs typed with an open TypedDict to a callable that has no `**kwargs`.
4
-
"""
5
-
conformance_automated = "Fail"
1
+
conformant = "Pass"
2
+
conformance_automated = "Pass"
6
3
errors_diff = """
7
-
Line 176: Expected 1 errors
8
4
"""
9
5
output = """
10
6
callables_kwargs.py:47:5: error[missing-argument] No arguments provided for required parameters `v1`, `v3` of function `func1`
@@ -22,6 +18,6 @@ callables_kwargs.py:104:19: error[invalid-assignment] Object of type `def func1(
22
18
callables_kwargs.py:112:20: error[invalid-type-form] Parameter `v1` overlaps with unpacked TypedDict key in `**kwargs` annotation
23
19
callables_kwargs.py:123:21: error[invalid-type-form] Unpacked value for `**kwargs` must be a TypedDict, not `T@func6`
24
20
callables_kwargs.py:135:19: error[invalid-assignment] Object of type `def func7(*, v1: int, v3: str, v2: str = "") -> None` is not assignable to `TDProtocol6`
25
-
callables_kwargs.py:194:16: error[unknown-argument] Unpacked argument may contain keyword arguments that do not match any known parameter of function `takes_name`
26
-
callables_kwargs.py:195:27: error[invalid-argument-type] Argument to function `takes_name_str_kwargs` is incorrect: Expected `str`, found `int`
21
+
callables_kwargs.py:184:16: error[unknown-argument] Unpacked argument may contain keyword arguments that do not match any known parameter of function `takes_name`
22
+
callables_kwargs.py:185:27: error[invalid-argument-type] Argument to function `takes_name_str_kwargs` is incorrect: Expected `str`, found `int`
0 commit comments