Skip to content

Commit

Permalink
fixed linting issues w/ burnettk
Browse files Browse the repository at this point in the history
  • Loading branch information
jasquat committed Oct 13, 2023
1 parent a1eb9f2 commit 9579ac8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/spiffworkflow_proxy/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def tokensaver(token: str) -> None:

def json_error_response(message: str, error_code: str, status: int) -> Response:
response: ConnectorProxyResponseDict = {
"api_response": {},
"command_response": {},
"error": {
"message": message,
"error_code": error_code,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Simple Example Command."""
from typing import Any

from spiffworkflow_connector_command.command_interface import ConnectorProxyResponseDict
from spiffworkflow_connector_command.command_interface import CommandResultDict
from spiffworkflow_connector_command.command_interface import CommandResultDictV2
from spiffworkflow_connector_command.command_interface import ConnectorCommand
from spiffworkflow_connector_command.command_interface import ConnectorProxyResponseDict


class CombineStrings(ConnectorCommand):
Expand All @@ -20,15 +20,15 @@ def __init__(
self.arg1 = arg1
self.arg2 = arg2

def execute(self, config: Any, task_data: Any) -> CommandResultDict:
def execute(self, config: Any, task_data: Any) -> CommandResultDictV2:
"""Execute."""

return_response: ConnectorProxyResponseDict = {
"api_response": {"example_response": "whatever you want", "arg1": self.arg1, "arg2": self.arg2},
"command_response": {"example_response": "whatever you want", "arg1": self.arg1, "arg2": self.arg2},
"spiff__logs": [],
"error": None,
}
result: CommandResultDict = {
result: CommandResultDictV2 = {
"response": return_response,
"status": 200,
"mimetype": "application/json",
Expand Down

0 comments on commit 9579ac8

Please sign in to comment.