Skip to content

Commit d8fbdfd

Browse files
committed
changed to relative imports
1 parent 7e0d71a commit d8fbdfd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

client/commands/v2/pysa_server.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
version of persistent.py.
1010
"""
1111

12-
from pathlib import Path
1312
import asyncio
1413
import logging
14+
from pathlib import Path
15+
from typing import List, Sequence, Dict
1516

1617
from ... import (
1718
json_rpc,
@@ -34,9 +35,8 @@
3435
InitializationSuccess,
3536
InitializationFailure,
3637
)
37-
from api import query, connection as api_connection
38-
from api.connection import PyreQueryError
39-
from typing import List, Sequence, Dict
38+
from ....api import query, connection as api_connection
39+
from ....api.connection import PyreQueryError
4040

4141
LOG: logging.Logger = logging.getLogger(__name__)
4242

@@ -102,6 +102,7 @@ def invalid_models_to_diagnostics(
102102
return result
103103

104104
async def update_errors(self, document_path: Path) -> None:
105+
# Publishing empty diagnostics to clear errors in VSCode
105106
await _publish_diagnostics(self.output_channel, document_path, [])
106107
pyre_connection = api_connection.PyreConnection(
107108
Path(self.pyre_arguments.global_root)

0 commit comments

Comments
 (0)