insndb/core: switch PPCRecord.Flags to Tuple
authorDmitry Selyutin <ghostmansd@gmail.com>
Sat, 10 Jun 2023 18:18:53 +0000 (21:18 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Dec 2023 19:26:19 +0000 (19:26 +0000)
src/openpower/insndb/core.py

index 367008e176a08ee09cfdd749e6ec36bd1dfad8e1..defe898a6ee9ce232da46698e611be58bb15dfc2 100644 (file)
@@ -368,7 +368,7 @@ class PPCRecord(Dataclass):
                 "sgl pipe",
             )
 
-    class Flags(tuple, metaclass=FlagsMeta):
+    class Flags(Tuple, datatype=str, metaclass=FlagsMeta):
         def __new__(cls, flags=frozenset()):
             flags = frozenset(flags)
             diff = (flags - frozenset(cls))