Skip to content

Conversation

@thomasahle
Copy link
Collaborator

Adds support for all python ast types in string signatures, like Signature("text -> label:Literal['a', 'b']").
Fixes #1899

@thomasahle
Copy link
Collaborator Author

Ah, I forgot it needs to work in Python 3.9.
NoneType was only added in 3.10:
https://docs.python.org/3/library/types.html#types.NoneType

@thomasahle thomasahle merged commit 00d4f69 into stanfordnlp:main Dec 9, 2024
4 checks passed
isaacbmiller pushed a commit that referenced this pull request Dec 11, 2024
* Added support for more types
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.

Support more ast types in Signature typed parsing

1 participant