Skip to content

Commit

Permalink
fixed missing typing for some arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
m0mosenpai committed Jun 9, 2021
1 parent 20ad506 commit f62839f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion client/commands/v2/pysa_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def invalid_models_to_diagnostics(
)
return result

async def update_errors(self, document_path) -> None:
async def update_errors(self, document_path: Path) -> None:
await _publish_diagnostics(self.output_channel, document_path, [])
pyre_connection = api_connection.PyreConnection(
Path(self.pyre_arguments.global_root)
Expand Down Expand Up @@ -135,6 +135,14 @@ async def log_and_show_message_to_client(
LOG.debug(message)
await self.show_message_to_client(message, level)

async def show_model_errors_to_client(
self, diagnostics: Dict[Path, List[lsp.Diagnostic]]
) -> None:
for path, diagnostic in diagnostics.items():
await _publish_diagnostics(self.output_channel, path, [])
if diagnostic is not None:
await _publish_diagnostics(self.output_channel, path, diagnostic)

async def wait_for_exit(self) -> int:
while True:
async with _read_lsp_request(
Expand Down

0 comments on commit f62839f

Please sign in to comment.