We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
original = {"nested": {"items": {}}} original.items() # => dict_items([('nested', {'items': {}})]) client.resource("CustomResource", **original).serialize().items() # => TypeError: 'AttrDict' object is not callable client.resource("CustomResource", **original)['nested'].items() # => TypeError: 'AttrDict' object is not callable
And the most important case, it's impossible save this resource because it makes serialize() and then json.dumps()
client.resource("CustomResource", **original).save() # => TypeError
The text was updated successfully, but these errors were encountered:
@ir4y the root of the issue is attr access via dot. Personally, I don't like this approach, dict must have dict behavior.
But it's too late to get rid of it. We need to find a workaround, at least, serialize() should return pure dict instead of AttrDict
Sorry, something went wrong.
Similar issues caused by attr access: #59
No branches or pull requests
And the most important case, it's impossible save this resource because it makes serialize() and then json.dumps()
The text was updated successfully, but these errors were encountered: