|
1 | 1 | conformant = "Partial" |
2 | 2 | notes = """ |
3 | 3 | Does not reject unpacking a TypedDict that sets `extra_items` in a call to a callable that has no `**kwargs`. |
| 4 | +Does not reject unpacking a TypedDict that sets `extra_items` 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 named keyword parameters. |
4 | 6 | """ |
5 | 7 | output = """ |
6 | 8 | callables_kwargs.py:37:5 - error: Could not access item in TypedDict |
@@ -33,21 +35,25 @@ callables_kwargs.py:142:21 - error: Expected TypedDict type argument for Unpack |
33 | 35 | callables_kwargs.py:154:19 - error: Type "(*, v1: int, v3: str, v2: str = "") -> None" is not assignable to declared type "TDProtocol6" |
34 | 36 | Type "(*, v1: int, v3: str, v2: str = "") -> None" is not assignable to type "(**kwargs: **TD2) -> None" |
35 | 37 | Parameter "**kwargs" has no corresponding parameter (reportAssignmentType) |
36 | | -callables_kwargs.py:206:29 - error: Argument of type "object" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs" |
37 | | - "object" is not assignable to "str" (reportArgumentType) |
38 | | -callables_kwargs.py:209:29 - error: Argument of type "object" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs" |
| 38 | +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" |
39 | 39 | "object" is not assignable to "str" (reportArgumentType) |
40 | 40 | 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" |
41 | 41 | "object" is not assignable to "str" (reportArgumentType) |
42 | | -callables_kwargs.py:218: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:223:29 - error: Argument of type "object" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs" |
| 43 | + "object" is not assignable to "str" (reportArgumentType) |
| 44 | +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" |
43 | 45 | "object" is not assignable to "str" (reportArgumentType) |
44 | | -callables_kwargs.py:232:29 - error: Argument of type "int" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs" |
| 46 | +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" |
45 | 47 | "int" is not assignable to "str" (reportArgumentType) |
46 | | -callables_kwargs.py:235: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:247:29 - error: Argument of type "int" cannot be assigned to parameter "kwargs" of type "str" in function "takes_name_str_kwargs" |
47 | 49 | "int" is not assignable to "str" (reportArgumentType) |
48 | 50 | """ |
49 | 51 | conformance_automated = "Fail" |
50 | 52 | errors_diff = """ |
51 | | -Line 231: Expected 1 errors |
52 | | -Line 234: Expected 1 errors |
| 53 | +Line 243: Expected 1 errors |
| 54 | +Line 246: Expected 1 errors |
| 55 | +Line 249: Expected 1 errors |
| 56 | +Line 250: Expected 1 errors |
| 57 | +Line 251: Expected 1 errors |
| 58 | +Line 252: Expected 1 errors |
53 | 59 | """ |
0 commit comments