Skip to content

Commit fe5e2c8

Browse files
committed
refactor: add type annotations
Signed-off-by: Jack Cherng <[email protected]>
1 parent 2a4bc02 commit fe5e2c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import jmespath
1414
import sublime
15-
from LSP.plugin import ClientConfig, DottedDict, Request, Session, WorkspaceFolder
15+
from LSP.plugin import ClientConfig, DottedDict, Notification, Request, Session, WorkspaceFolder
1616
from lsp_utils import ApiWrapperInterface, NpmClientHandler, notification_handler, request_handler
1717

1818
from .constants import (
@@ -318,7 +318,7 @@ def update_status_bar_text(self, extra_variables: dict[str, Any] | None = None)
318318
log_warning(f'Invalid "status_text" template: {e}')
319319
session.set_config_status_async(rendered_text)
320320

321-
def on_server_notification_async(self, notification) -> None:
321+
def on_server_notification_async(self, notification: Notification) -> None:
322322
if notification.method == "$/progress":
323323
if (token := notification.params["token"]) and token.startswith("copilot_chat://"):
324324
if params := notification.params["value"]:

0 commit comments

Comments
 (0)