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

Bug: resolve the return type hint of Annotated[] #187

Open
nstarman opened this issue Aug 1, 2024 · 0 comments
Open

Bug: resolve the return type hint of Annotated[] #187

nstarman opened this issue Aug 1, 2024 · 0 comments

Comments

@nstarman
Copy link
Contributor

nstarman commented Aug 1, 2024

Error log

I encountered this error in the return type when experimenting with typing_extensions.Doc. Annotated should be unwrapped to get the actual type.

In the above error log.

UserWarning: Could not resolve the type hint of `typing.Annotated[<type>, Doc('of type `x`.')]`. I have ended the resolution here to not make your code break, but some types might not be working correctly. Please open an issue at https://github.com/wesselb/plum.
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

No branches or pull requests

1 participant