From 528cc01bbbb9c7972c9192f931941828d699626d Mon Sep 17 00:00:00 2001 From: Kirill Podoprigora Date: Tue, 9 May 2023 22:18:15 +0300 Subject: [PATCH] gh-104328: Fix typo in ``typing.Generic`` multiple inheritance error message (GH-104335) (cherry picked from commit 01c321ca34d99f35f174768c6f8c500801d4ef4c) Co-authored-by: Kirill Podoprigora --- Lib/typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/typing.py b/Lib/typing.py index 2db354017a8b03..921542f49c3242 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -1860,7 +1860,7 @@ def __init_subclass__(cls, *args, **kwargs): base.__origin__ is Generic): if gvars is not None: raise TypeError( - "Cannot inherit from Generic[...] multiple types.") + "Cannot inherit from Generic[...] multiple times.") gvars = base.__parameters__ if gvars is not None: tvarset = set(tvars)