Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 663b321

Browse files
[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 01c321c) Co-authored-by: Kirill Podoprigora <[email protected]>
1 parent 4ed59b1 commit 663b321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/typing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1860,7 +1860,7 @@ def __init_subclass__(cls, *args, **kwargs):
18601860
base.__origin__ is Generic):
18611861
if gvars is not None:
18621862
raise TypeError(
1863-
"Cannot inherit from Generic[...] multiple types.")
1863+
"Cannot inherit from Generic[...] multiple times.")
18641864
gvars = base.__parameters__
18651865
if gvars is not None:
18661866
tvarset = set(tvars)

0 commit comments

Comments
 (0)