You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> from typing import TypeVar
>>> T = TypeVar("T")
>>> class Foo[S](Generic[T]): ...
...
Traceback (most recent call last):
File "<python-input-13>", line 1, in <module>
class Foo[S](Generic[T]): ...
File "<python-input-13>", line 1, in <generic parameters of Foo>
class Foo[S](Generic[T]): ...
File "/Users/alexw/.pyenv/versions/3.13.1/lib/python3.13/typing.py", line 1279, in _generic_init_subclass
raise TypeError(
"Cannot inherit from Generic[...] multiple times.")
TypeError: Cannot inherit from Generic[...] multiple times.
Originally posted by @AlexWaygood in #15565 (comment)
The text was updated successfully, but these errors were encountered: