]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-104328: Fix typo in ``typing.Generic`` multiple inheritance error message...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 9 May 2023 19:42:57 +0000 (12:42 -0700)
committerGitHub <noreply@github.com>
Tue, 9 May 2023 19:42:57 +0000 (19:42 +0000)
gh-104328: Fix typo in ``typing.Generic`` multiple inheritance error message (GH-104335)
(cherry picked from commit 01c321ca34d99f35f174768c6f8c500801d4ef4c)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Lib/typing.py

index 2db354017a8b034a4c877f665ca58463aa145875..921542f49c3242eb3236f834f9dc00591c072cd4 100644 (file)
@@ -1860,7 +1860,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)