insndb/core: fix operands iteration
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 11 Jun 2023 08:13:11 +0000 (11:13 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sun, 11 Jun 2023 08:13:11 +0000 (11:13 +0300)
src/openpower/insndb/core.py

index 973aac002776707372988360ff8dee3dcbea501c..1388fa21dbc2cae1b3e5a02382018f2225bdd315 100644 (file)
@@ -884,7 +884,7 @@ class Operands(Dict, datatype=object):
 
     @staticmethod
     def filter(cls):
-        return lambda pair: isinstance(pair[0], cls)
+        return lambda pair: issubclass(pair[0], cls)
 
     @cached_property
     def static(self):