From: Kirill Podoprigora Date: Tue, 9 May 2023 19:18:15 +0000 (+0300) Subject: gh-104328: Fix typo in ``typing.Generic`` multiple inheritance error message (#104335) X-Git-Tag: v3.12.0b1~191 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01c321ca34d99f35f174768c6f8c500801d4ef4c;p=thirdparty%2FPython%2Fcpython.git gh-104328: Fix typo in ``typing.Generic`` multiple inheritance error message (#104335) --- diff --git a/Lib/typing.py b/Lib/typing.py index 0dacdd9031a7..4f8cba88632d 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -1896,7 +1896,7 @@ class Generic: 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)