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 <kirill.bast9@mail.ru>
1 parent 4ed59b1 commit 663b321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/typing.py

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy