-
Notifications
You must be signed in to change notification settings - Fork 28
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
Subclass of dict
is not recognized since 0.9
#57
Comments
Makes sense we need to try the next Shouldn't be too hard to fix, would you like to have a try. |
This still prevents me from upgrading rtoml to 0.11 for some of my projects. Originally comments with the PR: Can we add something to make it work at the python end? For example, at def dump(obj, ...):
if issubclass(type(obj), dict):
obj = dict(obj)
# continue logic |
well the problem is it needs to be recursive. You could add your own method to do this. By the way, it's better to use use |
That's a good point. Maybe I'll just wrap it myself. Feel free to close. |
Ultimate solution is pydantic/pydantic-core#1339, I'll leave this open for that. |
The text was updated successfully, but these errors were encountered: