Skip to content

Commit 2ce0c69

Browse files
committed
Cannot reference socket even in types
1 parent 6e3bde7 commit 2ce0c69

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/debugpy/adapter/clients.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
from debugpy.common import json, log, messaging, sockets
1515
from debugpy.adapter import clients, components, launchers, servers, sessions
1616

17-
if TYPE_CHECKING:
18-
# socket can't be imported at runtime on linux, causes runtime issues.
19-
import socket
20-
2117
class Client(components.Component):
2218
"""Handles the client side of a debug session."""
2319

@@ -45,7 +41,7 @@ class Expectations(components.Capabilities):
4541
"pathFormat": json.enum("path", optional=True), # we don't support "uri"
4642
}
4743

48-
def __init__(self, sock: "Union[Literal[\"stdio\"], socket.socket]"):
44+
def __init__(self, sock):
4945
if sock == "stdio":
5046
log.info("Connecting to client over stdio...", self)
5147
self.using_stdio = True

0 commit comments

Comments
 (0)