Skip to content

Commit 26ca99e

Browse files
committed
fixed missing typing for some arguments
1 parent ac8f0bc commit 26ca99e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

client/commands/v2/pysa_server.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def invalid_models_to_diagnostics(
9696
)
9797
return result
9898

99-
async def update_errors(self, document_path) -> None:
99+
async def update_errors(self, document_path: Path) -> None:
100100
await _publish_diagnostics(self.output_channel, document_path, [])
101101
pyre_connection = api_connection.PyreConnection(
102102
Path(self.pyre_arguments.global_root)
@@ -136,7 +136,9 @@ async def log_and_show_message_to_client(
136136
LOG.debug(message)
137137
await self.show_message_to_client(message, level)
138138

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

0 commit comments

Comments
 (0)