The following lines show the class string representation before and
after this patch:
<sigrok.core.classes.ChannelGroup; proxy of <Swig Object of type 'std::shared_ptr< sigrok::ChannelGroup > *' at 0x7fdf4b29f660> >
ChannelGroup (name='A0', channels=(Channel (type=ChannelType.ANALOG, name='A0', index=8, enabled=True),))
Signed-off-by: Marc Schink <redacted>
+%extend sigrok::ChannelGroup
+{
+%pythoncode
+{
+ def __repr__(self):
+ return _class_attribute_repr(self, ['name', 'channels'])
+}
+}
+