Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ltbringer committed Aug 29, 2021
1 parent f3fc4aa commit 7545d5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions dialogy/base/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,19 @@ 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.
This method is called by the workflow after the pre-processing stage.
"""
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.
"""
Expand Down
2 changes: 1 addition & 1 deletion dialogy/plugins/text/classification/xlmr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7545d5a

Please sign in to comment.