Core: Fix Warnings from LGTM

This commit is contained in:
Mike Auty
2020-11-04 21:02:36 +00:00
parent ae3a97e2c7
commit 7c75018fc4
11 changed files with 38 additions and 23 deletions
+3
View File
@@ -438,6 +438,9 @@ 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
@classmethod
def _generate_inverse_choices(cls, choices: Dict[str, int]) -> Dict[int, str]:
"""Generates the inverse choices for the object."""