Skip to content

Commit 4f0dec3

Browse files
authored
Update error message for unpacking TypedDict
1 parent 7029712 commit 4f0dec3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/semanal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ def remove_unpack_kwargs(self, defn: FuncDef, typ: CallableType) -> CallableType
11041104
return typ
11051105
p_last_type = get_proper_type(last_type.type)
11061106
if not isinstance(p_last_type, TypedDictType):
1107-
self.fail("Unpack item in ** argument must be a TypedDict", last_type)
1107+
self.fail("Unpack item in ** parameter must be a TypedDict", last_type)
11081108
new_arg_types = typ.arg_types[:-1] + [AnyType(TypeOfAny.from_error)]
11091109
return typ.copy_modified(arg_types=new_arg_types)
11101110
overlap = set(typ.arg_names) & set(p_last_type.items)

0 commit comments

Comments
 (0)