Skip to content

Conversation

@lagru
Copy link
Member

@lagru lagru commented Aug 10, 2025

Fixes #58.

list of (list of int) and similar constructs should be parse-able now. However, I think it will rarely be a good idea to nest these forms – falling back to Python' syntax actually seems more readable.

Release note

For maintainers and optionally contributors, please refer to changelist's README on how to document this PR for the release notes.

Nesting natural language containers didn't work in all cases. Now, 
doctypes like `list of (list of int)` will work. For complex nested types,
falling back to Python's typing syntax might be more readable though.

`list of (list of int)` and similar constructs should be parsable now.
However, I think it will rarely be a good idea to nest these forms –
falling back to Python' syntax actually seems more readable.
@lagru lagru added the fix Addresses regressions & bugs label Aug 10, 2025
@lagru lagru added this to the v0.4 milestone Aug 10, 2025
@lagru lagru merged commit 2afc549 into main Aug 10, 2025
7 checks passed
@lagru lagru deleted the nesting-natlang-containers branch August 10, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Addresses regressions & bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

list of (list of int) doesn't work but should

2 participants