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
Code snippet:
classC(list[int]): ...
On Python 3.9:
>>>classC(list[*a]):... File "<stdin>", line 1 class C(list[*a]): ... ^SyntaxError: invalid syntax>>>
On Python 3.10:
>>>classC(list[*a]):... File "<stdin>", line 1 class C(list[*a]): ... ^SyntaxError: expected ':'>>>
I'd have expected it to point directly at the* in both cases.