From: Dmitry Selyutin Date: Sun, 11 Jun 2023 08:13:11 +0000 (+0300) Subject: insndb/core: fix operands iteration X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=880d49ebc6ee3b500be11ff35012e296b5c44892;p=openpower-isa.git insndb/core: fix operands iteration --- diff --git a/src/openpower/insndb/core.py b/src/openpower/insndb/core.py index 973aac00..1388fa21 100644 --- a/src/openpower/insndb/core.py +++ b/src/openpower/insndb/core.py @@ -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):