Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Moosems committed May 31, 2024
1 parent 4c18c0d commit f9b3c7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion salve_ipc/highlight/highlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def to_tuple(self) -> tuple[tuple[int, int], int, str]:
return (self.start_index, self.token_length, self.highlight_type)


def tokens_from_result(result: list[tuple[tuple[int, int], int, str]]) -> list[Token]:
def tokens_from_result(
result: list[tuple[tuple[int, int], int, str]]
) -> list[Token]:
"""Returns a list of Token's given as a result (converted to tuples) that can be used for highlighting"""
tokens: list[Token] = []
for token in result:
Expand Down
4 changes: 2 additions & 2 deletions salve_ipc/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def handle_request(self, request: Request) -> None:
"type": "response",
"cancelled": True,
"command": command,
"result": result, # type: ignore
"result": result, # type: ignore
}

match request["command"]:
Expand Down Expand Up @@ -104,7 +104,7 @@ def handle_request(self, request: Request) -> None:
"type": "response",
"cancelled": cancelled,
"command": command,
"result": result, # type: ignore
"result": result, # type: ignore
}
self.write_response(response)
self.newest_ids[command] = 0
Expand Down

0 comments on commit f9b3c7b

Please sign in to comment.