Skip to content

Commit 8b8467a

Browse files
committed
Fix type errors
1 parent 6e3bde7 commit 8b8467a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/debugpy/adapter/clients.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import atexit
88
import os
99
import sys
10-
from typing import TYPE_CHECKING, Any, Literal, Union, cast
10+
from typing import TYPE_CHECKING, Any, Callable, Literal, Union, cast
1111

1212
import debugpy
1313
from debugpy import adapter, common, launcher
@@ -207,7 +207,7 @@ def initialize_request(self, request):
207207
#
208208
# See https://github.com/microsoft/vscode/issues/4902#issuecomment-368583522
209209
# for the sequence of request and events necessary to orchestrate the start.
210-
def _start_message_handler(f):
210+
def _start_message_handler(f: Callable[..., Any])-> Callable[..., object | None]: # pyright: ignore[reportGeneralTypeIssues, reportSelfClsParameterName]
211211
@components.Component.message_handler
212212
def handle(self, request: messaging.Message):
213213
assert request.is_request("launch", "attach")

0 commit comments

Comments
 (0)