Skip to content

Commit 01c321c

Browse files
authored
gh-104328: Fix typo in typing.Generic multiple inheritance error message (#104335)
1 parent 2866e03 commit 01c321c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/typing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1896,7 +1896,7 @@ def __init_subclass__(cls, *args, **kwargs):
18961896
base.__origin__ is Generic):
18971897
if gvars is not None:
18981898
raise TypeError(
1899-
"Cannot inherit from Generic[...] multiple types.")
1899+
"Cannot inherit from Generic[...] multiple times.")
19001900
gvars = base.__parameters__
19011901
if gvars is not None:
19021902
tvarset = set(tvars)

0 commit comments

Comments
 (0)