mirror of
https://github.com/python/cpython.git
synced 2025-08-23 02:04:56 +00:00
gh-104328: Fix typo in `typing.Generic
` multiple inheritance error message (#104335)
This commit is contained in:
parent
2866e030f0
commit
01c321ca34
1 changed files with 1 additions and 1 deletions
|
@ -1896,7 +1896,7 @@ class Generic:
|
||||||
base.__origin__ is Generic):
|
base.__origin__ is Generic):
|
||||||
if gvars is not None:
|
if gvars is not None:
|
||||||
raise TypeError(
|
raise TypeError(
|
||||||
"Cannot inherit from Generic[...] multiple types.")
|
"Cannot inherit from Generic[...] multiple times.")
|
||||||
gvars = base.__parameters__
|
gvars = base.__parameters__
|
||||||
if gvars is not None:
|
if gvars is not None:
|
||||||
tvarset = set(tvars)
|
tvarset = set(tvars)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue