Skip to content

Commit 912e4bc

Browse files
just use the original error message
1 parent e952d5f commit 912e4bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3094,7 +3094,7 @@ def __new__(cls, name, bases, ns, total=True, closed=None,
30943094
raise TypeError('Cannot inherit from both a TypedDict type '
30953095
'and a non-TypedDict base class')
30963096
if closed is not None and extra_items is not NoExtraItems:
3097-
raise TypeError(f"Closed cannot be specified with extra_items")
3097+
raise TypeError(f"Cannot combine closed={closed!r} and extra_items")
30983098

30993099
if any(issubclass(b, Generic) for b in bases):
31003100
generic_base = (Generic,)

0 commit comments

Comments
 (0)