From 01c321ca34d99f35f174768c6f8c500801d4ef4c 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 (#104335) --- Lib/typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/typing.py b/Lib/typing.py index 0dacdd9031a776..4f8cba88632d6a 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -1896,7 +1896,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)