mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
[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 01c321ca34
)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
This commit is contained in:
parent
4ed59b1f33
commit
663b32199e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue