You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it causes a TypeError: 'NoneType' object is not callable exception in the for key, value in dict(doc).items(): line. After some digging, it looks as if the __dict__ implementation of the pyArango.document.Document class is not correct:
I would be happy create an MR for the behavior change of __dict__ in Document or, alternatively, to add a paragraph to the README.md or documentation. If there is an even better solution, I'd also be happy to contribute. Just let me know what you prefer!
Environment:
Python Version: 3.9
Operating System: Windows
pyArango Version: 2.,0.1
The text was updated successfully, but these errors were encountered:
I expected that the following code will print all key/value pairs from the document with key
existing_document_key
:But it causes a
TypeError: 'NoneType' object is not callable
exception in thefor key, value in dict(doc).items():
line. After some digging, it looks as if the__dict__
implementation of thepyArango.document.Document
class is not correct:But
DocumentStore
does not implement any sensible__dict__
method. Might it be that the__dict__ method of
Document` should rather be:P.S.: After writing up this issue, I was also able to rewrite my initial code to
I would be happy create an MR for the behavior change of
__dict__
inDocument
or, alternatively, to add a paragraph to theREADME.md
or documentation. If there is an even better solution, I'd also be happy to contribute. Just let me know what you prefer!Environment:
The text was updated successfully, but these errors were encountered: