diff --git a/volatility/framework/objects/__init__.py b/volatility/framework/objects/__init__.py index ec62f1fcc..3624acff6 100644 --- a/volatility/framework/objects/__init__.py +++ b/volatility/framework/objects/__init__.py @@ -438,7 +438,7 @@ class Enumeration(interfaces.objects.ObjectInterface, int): self._vol['base_type'] = base_type def __eq__(self, other): - return super(self) == super(other) and self.choices == other.choices + return super().__eq__(other) and isinstance(other, Enumeration) and self.choices == other.choices @classmethod def _generate_inverse_choices(cls, choices: Dict[str, int]) -> Dict[int, str]: