From a1af90d423e3368d0a675f64c3d9c9361e53e0a4 Mon Sep 17 00:00:00 2001 From: Jonathan Karlsen Date: Wed, 3 Apr 2024 09:23:04 +0200 Subject: [PATCH] Fix ErtPlugin interface staticmethods Commit `15ff246` marked interface methods with `@staticmethod` without considering other scripts inheriting the interface. --- src/ert/config/ert_plugin.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ert/config/ert_plugin.py b/src/ert/config/ert_plugin.py index 1ea2a15f178..68d63479734 100644 --- a/src/ert/config/ert_plugin.py +++ b/src/ert/config/ert_plugin.py @@ -10,13 +10,11 @@ class CancelPluginException(Exception): class ErtPlugin(ErtScript, ABC): - @staticmethod - def getArguments(parent: Any = None) -> List[Any]: + def getArguments(self, parent: Any = None) -> List[Any]: # noqa: PLR6301 return [] def getName(self) -> str: return str(self.__class__) - @staticmethod - def getDescription() -> str: + def getDescription(self) -> str: # noqa: PLR6301 return "No description provided!"