diff --git a/volatility3/framework/interfaces/objects.py b/volatility3/framework/interfaces/objects.py index 1228c4d0a..64a00398b 100644 --- a/volatility3/framework/interfaces/objects.py +++ b/volatility3/framework/interfaces/objects.py @@ -79,7 +79,7 @@ class ObjectInformation: raise KeyError(f"No {key} present in ObjectInformation") def __contains__(self, key): - return key in [field.name for field in dataclasses.fields(self)] + return any(field.name == key for field in dataclasses.fields(self)) class ObjectInterface(metaclass=abc.ABCMeta):