summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-05-09 19:42:57 (GMT)
committerGitHub <noreply@github.com>2023-05-09 19:42:57 (GMT)
commit663b32199e709a83b2eebc3eeeb602f0af949bee (patch)
tree348f627fb3155f16e12543e1088971eee297dd3c
parent4ed59b1f330ca97b9f0b5567485283df24175fe4 (diff)
downloadcpython-663b32199e709a83b2eebc3eeeb602f0af949bee.zip
cpython-663b32199e709a83b2eebc3eeeb602f0af949bee.tar.gz
cpython-663b32199e709a83b2eebc3eeeb602f0af949bee.tar.bz2
[3.11] gh-104328: Fix typo in ``typing.Generic`` multiple inheritance error message (GH-104335) (#104338)
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>
-rw-r--r--Lib/typing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/typing.py b/Lib/typing.py
index 2db3540..921542f 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -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)