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
class CompoundValue:
"""Represents a data object for a specific xsd:complexType."""
_xsd_type: "ComplexType"
_xsd_elm: "Element"
def __init__(self, *args, **kwargs):
values = OrderedDict()
# Can be done after unpickle
if self._xsd_type is None:
return
# <omit>
self.__values__ = values
Since there's an early return, the self.__values__ attribute does not exist.
Looking at the rest of the class, I see that many of the dunder methods are looking for self.__values__ attribute (ex: __repr__ looks for it)
It could be the cause for #1155 and a similar error that I am seeing. In my case, my code is hitting __repr__ and the object doesn't have __values__ attribute yet.
I think the fix is to ensure that __values__ attribute exists before returning from __init__
The text was updated successfully, but these errors were encountered:
Looking in valueobjects.py, around here:
python-zeep/src/zeep/xsd/valueobjects.py
Line 91 in c80519e
I see:
Since there's an early return, the
self.__values__
attribute does not exist.Looking at the rest of the class, I see that many of the dunder methods are looking for
self.__values__
attribute (ex:__repr__
looks for it)It could be the cause for #1155 and a similar error that I am seeing. In my case, my code is hitting
__repr__
and the object doesn't have__values__
attribute yet.I think the fix is to ensure that
__values__
attribute exists before returning from__init__
The text was updated successfully, but these errors were encountered: