Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

native types: annotated types for allow explicit inmanta types #8573

Open
wouterdb opened this issue Jan 7, 2025 · 0 comments · May be fixed by #8665
Open

native types: annotated types for allow explicit inmanta types #8573

wouterdb opened this issue Jan 7, 2025 · 0 comments · May be fixed by #8665
Assignees

Comments

@wouterdb
Copy link
Contributor

wouterdb commented Jan 7, 2025

Allow the following:

typing.Annotated[Mapping[str, int], InmantaType("dict")]

see also: #8433
ensure the rest of the code (e.g. handling of unions) can correctly handle annotated types

We don't validate the correspondence between both types...

@jptrindade jptrindade self-assigned this Jan 16, 2025
@jptrindade jptrindade linked a pull request Jan 20, 2025 that will close this issue
9 tasks
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 a pull request may close this issue.

2 participants