-
-
Notifications
You must be signed in to change notification settings - Fork 128
Closed as not planned
Description
MRE:
from typing import Generic
from typing_extensions import TypeVar
G = TypeVar("G")
T = TypeVar("T", default=int)
class MRE(Generic[G, T]): ...
MRE[int]Error:
TypeError: Too few arguments for <class '__main__.MRE'>; actual 1, expected 2
Expected behavior:
Working code is as of 3.13.
Note.
When using typing_extensions, the same error occurs.
Intended solution
Implement your own Generic class, which will be used until version 3.13.
With your permission, I would like to provide a Pull Request to fix this bug.
Metadata
Metadata
Assignees
Labels
No labels