diff --git a/client/commands/v2/pysa_server.py b/client/commands/v2/pysa_server.py index 3921c559e79..c22e285fc45 100644 --- a/client/commands/v2/pysa_server.py +++ b/client/commands/v2/pysa_server.py @@ -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) @@ -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: