Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredoconnell committed Sep 12, 2023
1 parent cce45b7 commit 7cf6628
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/arcaflow_plugin_sdk/atp.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ def send_runtime_message(self, message_type: MessageType, data: any):
}
)


def read_results(self) -> (str, any, str):
"""
This function reads the signals and results of an execution from the plugin.
Expand Down
4 changes: 2 additions & 2 deletions src/arcaflow_plugin_sdk/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def signal_decorator(func: _step_decorator_param) -> schema.SignalHandlerType:
sig = inspect.signature(func)
if len(sig.parameters) != 2:
raise BadArgumentException(
"The '%s' (id: %s) signal must have exactly two parameters, including self. Currently has %v" %
(name, id, sig.parameters)
"The '%s' (id: %s) signal must have exactly two parameters, including self. Currently has %s" %
(name, id, str(sig.parameters))
)
input_param = list(sig.parameters.values())[1]
if input_param.annotation is inspect.Parameter.empty:
Expand Down
2 changes: 1 addition & 1 deletion src/arcaflow_plugin_sdk/test_atp.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from threading import Event
from typing import TextIO, Tuple, Union, List

from arcaflow_plugin_sdk import atp, plugin, schema, predefined_schemas
from arcaflow_plugin_sdk import atp, plugin, schema


@dataclasses.dataclass
Expand Down

0 comments on commit 7cf6628

Please sign in to comment.