Skip to content

Commit

Permalink
Make pyright happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Moosems committed Aug 9, 2024
1 parent fb323f1 commit b9b3e6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions albero/ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ def remove_file(server: "IPCHighlightServer", request: Request) -> None:

def update_mapping(server: "IPCHighlightServer", request: Request) -> None:
server.highlighter.update_mapping(
request["language_name"], request["mapping"]
) # type: ignore
request["language_name"], request["mapping"] # type: ignore
)


def get_highlights(
server: "IPCHighlightServer", request: Request
) -> list[Token]:
return server.highlighter.get_highlights(
request["file_name"], request["text_range"]
) # type: ignore
request["file_name"], request["text_range"] # type: ignore
)


class IPCHighlighter(SimpleClient):
Expand Down

0 comments on commit b9b3e6b

Please sign in to comment.