PDB: Fix issue #374

This commit is contained in:
Mike Auty
2020-11-12 17:02:40 +00:00
parent 49aeaf2a49
commit 60a70d06ca
+1 -1
View File
@@ -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]: