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 3b7c926
Browse filesBrowse the repository at this point in the historyBrowse files
callables_kwargs.py:170: error: Unexpected keyword argument "closed" for "__init_subclass__" of "TypedDict" [call-arg]
36
36
callables_kwargs.py:174: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]
37
37
callables_kwargs.py:178: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]
38
+
callables_kwargs.py:182: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]
38
39
"""
39
40
conformance_automated = "Fail"
40
41
errors_diff = """
41
42
Line 154: Expected 1 errors
42
-
Line 210: Expected 1 errors
43
-
Line 212: Expected 1 errors
44
-
Line 213: Expected 1 errors
45
-
Line 215: Expected 1 errors
46
-
Line 216: Expected 1 errors
47
-
Line 217: Expected 1 errors
48
-
Line 221: Expected 1 errors
49
43
Line 223: Expected 1 errors
50
-
Line 224: Expected 1 errors
44
+
Line 225: Expected 1 errors
51
45
Line 226: Expected 1 errors
52
-
Line 227: Expected 1 errors
53
46
Line 228: Expected 1 errors
47
+
Line 229: Expected 1 errors
48
+
Line 230: Expected 1 errors
49
+
Line 238: Expected 1 errors
50
+
Line 240: Expected 1 errors
51
+
Line 241: Expected 1 errors
54
52
Line 243: Expected 1 errors
55
53
Line 244: Expected 1 errors
56
-
Line 246: Expected 1 errors
57
-
Line 247: Expected 1 errors
58
-
Line 249: Expected 1 errors
59
-
Line 250: Expected 1 errors
60
-
Line 251: Expected 1 errors
61
-
Line 252: Expected 1 errors
54
+
Line 245: Expected 1 errors
55
+
Line 264: Expected 1 errors
56
+
Line 265: Expected 1 errors
57
+
Line 267: Expected 1 errors
58
+
Line 268: Expected 1 errors
59
+
Line 270: Expected 1 errors
60
+
Line 271: Expected 1 errors
61
+
Line 272: Expected 1 errors
62
+
Line 273: Expected 1 errors
62
63
Line 23: Unexpected errors ['callables_kwargs.py:23: error: Unexpected keyword argument "closed" for "__init_subclass__" of "TypedDict" [call-arg]']
63
64
Line 27: Unexpected errors ['callables_kwargs.py:27: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]']
64
65
Line 166: Unexpected errors ['callables_kwargs.py:166: error: Unexpected keyword argument "closed" for "__init_subclass__" of "TypedDict" [call-arg]']
65
66
Line 170: Unexpected errors ['callables_kwargs.py:170: error: Unexpected keyword argument "closed" for "__init_subclass__" of "TypedDict" [call-arg]']
66
67
Line 174: Unexpected errors ['callables_kwargs.py:174: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]']
67
68
Line 178: Unexpected errors ['callables_kwargs.py:178: error: Unexpected keyword argument "extra_items" for "__init_subclass__" of "TypedDict" [call-arg]']
69
+
Line 182: Unexpected errors ['callables_kwargs.py:182: 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
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -37,33 +37,33 @@ callables_kwargs.py:142:21 - error: Expected TypedDict type argument for Unpack
37
37
callables_kwargs.py:154:19 - error: Type "(*, v1: int, v3: str, v2: str = "") -> None" is not assignable to declared type "TDProtocol6"
38
38
Type "(*, v1: int, v3: str, v2: str = "") -> None" is not assignable to type "(**kwargs: **TD2) -> None"
39
39
Parameter "**kwargs" has no corresponding parameter (reportAssignmentType)
40
-
callables_kwargs.py:212:29 - error: Argument of type "object" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs"
40
+
callables_kwargs.py:225:29 - error: Argument of type "object" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs"
41
41
"object" is not assignable to "str" (reportArgumentType)
42
-
callables_kwargs.py:215:29 - error: Argument of type "object" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs"
42
+
callables_kwargs.py:228:29 - error: Argument of type "object" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs"
43
43
"object" is not assignable to "str" (reportArgumentType)
44
-
callables_kwargs.py:223:29 - error: Argument of type "object" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs"
44
+
callables_kwargs.py:240:29 - error: Argument of type "object" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs"
45
45
"object" is not assignable to "str" (reportArgumentType)
46
-
callables_kwargs.py:226:29 - error: Argument of type "object" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs"
46
+
callables_kwargs.py:243:29 - error: Argument of type "object" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs"
47
47
"object" is not assignable to "str" (reportArgumentType)
48
-
callables_kwargs.py:244:29 - error: Argument of type "int" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs"
48
+
callables_kwargs.py:265:29 - error: Argument of type "int" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs"
49
49
"int" is not assignable to "str" (reportArgumentType)
50
-
callables_kwargs.py:247:29 - error: Argument of type "int" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs"
50
+
callables_kwargs.py:268:29 - error: Argument of type "int" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs"
51
51
"int" is not assignable to "str" (reportArgumentType)
Copy file name to clipboardExpand all lines: conformance/results/ty/callables_kwargs.toml
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,14 @@ Does not reject unpacking an open TypedDict in a call to a callable that has no
5
5
Does not reject unpacking an open TypedDict in a call to a callable whose `**kwargs` is typed with a closed TypedDict.
6
6
"""
7
7
errors_diff = """
8
-
Line 210: Expected 1 errors
9
-
Line 213: Expected 1 errors
10
-
Line 216: Expected 1 errors
11
-
Line 217: Expected 1 errors
12
-
Line 221: Expected 1 errors
13
-
Line 224: Expected 1 errors
14
-
Line 227: Expected 1 errors
15
-
Line 228: Expected 1 errors
8
+
Line 223: Expected 1 errors
9
+
Line 226: Expected 1 errors
10
+
Line 229: Expected 1 errors
11
+
Line 230: Expected 1 errors
12
+
Line 238: Expected 1 errors
13
+
Line 241: Expected 1 errors
14
+
Line 244: Expected 1 errors
15
+
Line 245: Expected 1 errors
16
16
"""
17
17
output = """
18
18
callables_kwargs.py:55:5: error[missing-argument] No arguments provided for required parameters `v1`, `v3` of function `func1`
@@ -30,16 +30,16 @@ callables_kwargs.py:123:19: error[invalid-assignment] Object of type `def func1(
30
30
callables_kwargs.py:131:20: error[invalid-type-form] Parameter `v1` overlaps with unpacked TypedDict key in `**kwargs` annotation
31
31
callables_kwargs.py:142:21: error[invalid-type-form] Unpacked value for `**kwargs` must be a TypedDict, not `T@func6`
32
32
callables_kwargs.py:154:19: error[invalid-assignment] Object of type `def func7(*, v1: int, v3: str, v2: str = "") -> None` is not assignable to `TDProtocol6`
33
-
callables_kwargs.py:212:27: error[invalid-argument-type] Argument to function `takes_name_str_kwargs` is incorrect: Possible extra items in unpacked open `TypedDict` have type `object`, expected `str`
34
-
callables_kwargs.py:215:27: error[invalid-argument-type] Argument to function `takes_name_str_kwargs` is incorrect: Possible extra items in unpacked open `TypedDict` have type `object`, expected `str`
35
-
callables_kwargs.py:223:27: error[invalid-argument-type] Argument to function `takes_name_str_kwargs` is incorrect: Possible extra items in unpacked open `TypedDict` have type `object`, expected `str`
36
-
callables_kwargs.py:226:27: error[invalid-argument-type] Argument to function `takes_name_str_kwargs` is incorrect: Possible extra items in unpacked open `TypedDict` have type `object`, expected `str`
37
-
callables_kwargs.py:243:16: error[unknown-argument] Unpacked argument may contain keyword arguments that do not match any known parameter of function `takes_name`
38
-
callables_kwargs.py:244:27: error[invalid-argument-type] Argument to function `takes_name_str_kwargs` is incorrect: Expected `str`, found `int`
39
-
callables_kwargs.py:246:16: error[unknown-argument] Unpacked argument may contain keyword arguments that do not match any known parameter of function `takes_name`
40
-
callables_kwargs.py:247:27: error[invalid-argument-type] Argument to function `takes_name_str_kwargs` is incorrect: Expected `str`, found `int`
41
-
callables_kwargs.py:249:18: error[unknown-argument] Unpacked argument may contain keyword arguments that do not match any known parameter of function `takes_closed`
42
-
callables_kwargs.py:250:18: error[unknown-argument] Unpacked argument may contain keyword arguments that do not match any known parameter of function `takes_closed`
43
-
callables_kwargs.py:251:37: error[invalid-argument-type] Argument to function `takes_optional_label_int_kwargs` is incorrect: Expected `str`, found `int`
44
-
callables_kwargs.py:252:37: error[invalid-argument-type] Argument to function `takes_optional_label_int_kwargs` is incorrect: Expected `str`, found `int`
33
+
callables_kwargs.py:225:27: error[invalid-argument-type] Argument to function `takes_name_str_kwargs` is incorrect: Possible extra items in unpacked open `TypedDict` have type `object`, expected `str`
34
+
callables_kwargs.py:228:27: error[invalid-argument-type] Argument to function `takes_name_str_kwargs` is incorrect: Possible extra items in unpacked open `TypedDict` have type `object`, expected `str`
35
+
callables_kwargs.py:240:27: error[invalid-argument-type] Argument to function `takes_name_str_kwargs` is incorrect: Possible extra items in unpacked open `TypedDict` have type `object`, expected `str`
36
+
callables_kwargs.py:243:27: error[invalid-argument-type] Argument to function `takes_name_str_kwargs` is incorrect: Possible extra items in unpacked open `TypedDict` have type `object`, expected `str`
37
+
callables_kwargs.py:264:16: error[unknown-argument] Unpacked argument may contain keyword arguments that do not match any known parameter of function `takes_name`
38
+
callables_kwargs.py:265:27: error[invalid-argument-type] Argument to function `takes_name_str_kwargs` is incorrect: Expected `str`, found `int`
39
+
callables_kwargs.py:267:16: error[unknown-argument] Unpacked argument may contain keyword arguments that do not match any known parameter of function `takes_name`
40
+
callables_kwargs.py:268:27: error[invalid-argument-type] Argument to function `takes_name_str_kwargs` is incorrect: Expected `str`, found `int`
41
+
callables_kwargs.py:270:18: error[unknown-argument] Unpacked argument may contain keyword arguments that do not match any known parameter of function `takes_closed`
42
+
callables_kwargs.py:271:18: error[unknown-argument] Unpacked argument may contain keyword arguments that do not match any known parameter of function `takes_closed`
43
+
callables_kwargs.py:272:37: error[invalid-argument-type] Argument to function `takes_optional_label_int_kwargs` is incorrect: Expected `str`, found `int`
44
+
callables_kwargs.py:273:37: error[invalid-argument-type] Argument to function `takes_optional_label_int_kwargs` is incorrect: Expected `str`, found `int`
0 commit comments