From 7545d5af825c8e4a0d0b7d58ddb7d3bc140be610 Mon Sep 17 00:00:00 2001 From: ltbringer Date: Mon, 30 Aug 2021 01:33:01 +0530 Subject: [PATCH] style: lint --- dialogy/base/plugin.py | 8 ++++++-- dialogy/plugins/text/classification/xlmr.py | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dialogy/base/plugin.py b/dialogy/base/plugin.py index cc8c5af7..fac5b71f 100644 --- a/dialogy/base/plugin.py +++ b/dialogy/base/plugin.py @@ -116,7 +116,9 @@ def __call__(self) -> PluginFn: """ return self.plugin - def train(self, training_data: Any) -> Any: # pylint: disable=unused-argument disable=no-self-use + def train( + self, training_data: Any + ) -> Any: # pylint: disable=unused-argument disable=no-self-use """ Train a plugin. @@ -124,7 +126,9 @@ def train(self, training_data: Any) -> Any: # pylint: disable=unused-argument d """ return None - def transform(self, training_data: Any) -> Any: # pylint: disable=unused-argument disable=no-self-use + def transform( + self, training_data: Any + ) -> Any: # pylint: disable=unused-argument disable=no-self-use """ Transform data for a plugin in the workflow. """ diff --git a/dialogy/plugins/text/classification/xlmr.py b/dialogy/plugins/text/classification/xlmr.py index d139cc27..e09adb8f 100644 --- a/dialogy/plugins/text/classification/xlmr.py +++ b/dialogy/plugins/text/classification/xlmr.py @@ -218,4 +218,4 @@ def load(self) -> None: ) def utility(self, *args: Any) -> Any: - return self.inference(*args) # pylint: disable=no-value-for-parameter + return self.inference(*args) # pylint: disable=no-value-for-parameter