Can only compare repeated composite fields against other repeated composite fields.
Package:
protobuf
50437

Exception Class:
TypeError
Raise code
lf._message_listener.Modified()
def __eq__(self, other):
"""Compares the current instance with another one."""
if self is other:
return True
if not isinstance(other, self.__class__):
raise TypeError('Can only compare repeated composite fields against '
'other repeated composite fields.')
return self._values == other._values
class ScalarMap(MutableMapping):
"""Simple, type-checked, dict-like container for holding repeated scalars."""
# D
Links to the raise (1)
https://github.com/protocolbuffers/protobuf/blob/96ccf402fe8e62649f2be48a05944d552701aa5f/python/google/protobuf/internal/containers.py#L456NO FIXES YET
Just press the button and we will add solution
to this exception as soon as possible
* As many users press the button, the faster we create a fix
Add a possible fix
Please authorize to post fix