Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
The following code gives me an error:
fromtypingimportGeneric,TypeVarTuple,ParamSpecTs=TypeVarTuple("Ts")P=ParamSpec("P")classFoo(Generic[*Ts,P]):passFoo[int,str, [bytes]]
TypeError: Too many arguments for <class 'Foo'>; actual 3, expected 2I don't see any reasons why it doesn't work withParamSpec. I believe it should assignint, str toTs and[bytes] toP.
Environment
- CPython versions tested on: 3.11
- Operating system and architecture: Linux x86_64