insndb/core: switch PPCMultiRecord to Tuple
authorDmitry Selyutin <ghostmansd@gmail.com>
Sat, 10 Jun 2023 18:16:42 +0000 (21:16 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sat, 10 Jun 2023 18:16:42 +0000 (21:16 +0300)
src/openpower/insndb/core.py

index 2cd7d5fbaebfb2698954589242af70924f341a5a..367008e176a08ee09cfdd749e6ec36bd1dfad8e1 100644 (file)
@@ -440,7 +440,7 @@ class PPCRecord(Dataclass):
         return frozenset(self.comment.split("=")[-1].split("/"))
 
 
-class PPCMultiRecord(tuple):
+class PPCMultiRecord(Tuple, datatype=PPCRecord):
     def __getattr__(self, attr):
         if attr == "opcode":
             if len(self) != 1: