Closed isidentical closed 3 years ago
Can you leave a comment explaining why you want this?
Uups, I thought I added it. Should be present in the description @gvanrossum
OK, got it. LGTM.
@isidentical Could you add some tests to cover this?
Thanks for the PR @isidentical :tada:
Currently for annotations we can only use either a normal name (like
expr
) or a name followed by star (expr_ty*
), though at least for python, type annotations are a bit more broad. Some examples;These are currently unsupported, so what this PR does is actually unifies the annotation syntax with the mini-action grammar. And opens up the possibility of the using any sort of expression as types (also includes a little bugfix that allows you to create empty dictionary on the action part)