insndb/core: fix operands kwargs
authorDmitry Selyutin <ghostmansd@gmail.com>
Mon, 12 Jun 2023 06:19:07 +0000 (09:19 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Mon, 12 Jun 2023 06:19:07 +0000 (09:19 +0300)
src/openpower/insndb/core.py

index 1388fa21dbc2cae1b3e5a02382018f2225bdd315..aef9530d7d746674dc3028daac2c0881f3c97c18 100644 (file)
@@ -1116,7 +1116,7 @@ class Record(Dataclass):
 
     def __getitem__(self, key):
         (cls, kwargs) = self.mdwn.operands.__getitem__(key)
-        return cls(record=self, **kwargs)
+        return cls(record=self, **dict(kwargs))
 
     @cached_property
     def Rc(self):