Skip to content

Commit

Permalink
[3.11] gh-104328: Fix typo in typing.Generic multiple inheritance…
Browse files Browse the repository at this point in the history
… error message (GH-104335) (#104338)

gh-104328: Fix typo in ``typing.Generic`` multiple inheritance error message (GH-104335)
(cherry picked from commit 01c321c)

Co-authored-by: Kirill Podoprigora <[email protected]>
  • Loading branch information
miss-islington and Eclips4 authored May 9, 2023
1 parent 4ed59b1 commit 663b321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1860,7 +1860,7 @@ def __init_subclass__(cls, *args, **kwargs):
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)
Expand Down

0 comments on commit 663b321

Please sign in to comment.