-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
"dict[str, T]
as a field type is not supported"
#177
Comments
Edit: after some trial and error, it seems to work if and only if you quote What makes it even worse is that some linters (e.g. ruff) force-strip quotes from type annotations by default (link). |
@aldanor Thank you for bringing it in. Postponed evaluation of annotations is pain in the ass. Function I need to tweak |
In a seemingly simple example with generics, close to the one presented in the docs, mashumaro seems to stumble on
dict[str, T]
annotation; wonder if this is intended, or a bug, or some misunderstanding on my side?yields
The text was updated successfully, but these errors were encountered: