FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.11] gh-104328: Fix typo in ``typing.Generic`` multiple inheritance… · python/cpython@663b321 · GitHub

/ cpython Public

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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)

Back | FazBrowse Home | New Git URL