gh-104328: Fix typo in `typing.Generic` multiple inheritance error message (#104335)

This commit is contained in:
Kirill Podoprigora 2023-05-09 22:18:15 +03:00 committed by GitHub
parent 2866e030f0
commit 01c321ca34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1896,7 +1896,7 @@ class Generic:
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)