Skip to content

Add literal typing.Unpack syntax (issue #802)#903

Open
esvanha wants to merge 1 commit intoevhub:developfrom
esvanha:develop
Open

Add literal typing.Unpack syntax (issue #802)#903
esvanha wants to merge 1 commit intoevhub:developfrom
esvanha:develop

Conversation

@esvanha
Copy link

@esvanha esvanha commented Mar 10, 2026

This PR adds support for **Type syntax for type annotations, as was described in issue #802 .

In grammar.py I have added/changed rules so it can now handle types prefixed with **. The compiler then translates this to _coconut.typing.Unpack[<TheType>].

Tests have also been added to test this new syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant