mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-27 20:14:51 +02:00
Interfaces: Fix LGTM warning without changing behaviour
This commit is contained in:
@@ -477,6 +477,11 @@ class ClassRequirement(RequirementInterface):
|
||||
super().__init__(*args, **kwargs)
|
||||
self._cls = None
|
||||
|
||||
def __eq__(self, other):
|
||||
# We can just use super because it checks all member of `__dict__`
|
||||
# This appeases LGTM and does the right thing
|
||||
return super().__eq__(other)
|
||||
|
||||
@property
|
||||
def cls(self) -> Type:
|
||||
"""Contains the actual chosen class based on the configuration value's
|
||||
@@ -525,6 +530,11 @@ class ConstructableRequirementInterface(RequirementInterface):
|
||||
self.add_requirement(ClassRequirement("class", "Class of the constructable requirement"))
|
||||
self._current_class_requirements = set()
|
||||
|
||||
def __eq__(self, other):
|
||||
# We can just use super because it checks all member of `__dict__`
|
||||
# This appeases LGTM and does the right thing
|
||||
return super().__eq__(other)
|
||||
|
||||
@abstractmethod
|
||||
def construct(self, context: 'interfaces.context.ContextInterface', config_path: str) -> None:
|
||||
"""Method for constructing within the context any required elements
|
||||
|
||||
Reference in New Issue
Block a user