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 1, 2021
1 parent ac8f0bc commit 26ca99e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/commands/v2/pysa_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,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 @@ -136,7 +136,9 @@ 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) -> None:
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:
Expand Down

0 comments on commit 26ca99e

Please sign in to comment.