Skip to content

Commit 6fb59c9

Browse files
committed
chore: address pr comments
Signed-off-by: Rushil Patel <rpatel@codegen.com>
1 parent 01e51c1 commit 6fb59c9

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

src/claude_code_sdk/_internal/transport/__init__.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@
44
from collections.abc import AsyncIterator
55
from typing import Any
66

7-
from claude_code_sdk.types import ClaudeCodeOptions
8-
97

108
class Transport(ABC):
11-
"""Abstract transport for Claude communication."""
9+
"""Abstract transport for Claude communication.
10+
11+
WARNING: This internal API is exposed for custom transport implementations
12+
(e.g., remote Claude Code connections). The Claude Code team may change or
13+
or remove this abstract class in any future release. Custom implementations
14+
must be updated to match interface changes.
15+
"""
1216

1317
@abstractmethod
1418
def configure(self, prompt: str, options: ClaudeCodeOptions) -> None:
@@ -43,5 +47,4 @@ def is_connected(self) -> bool:
4347
pass
4448

4549

46-
# Import implementations
4750
__all__ = ["Transport"]

src/claude_code_sdk/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,4 @@ class ClaudeCodeOptions:
128128
permission_prompt_tool_name: str | None = None
129129
cwd: str | Path | None = None
130130
settings: str | None = None
131+

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,4 @@ async def mock_receive():
111111
assert call_kwargs["prompt"] == "test"
112112
assert call_kwargs["options"].cwd == "/custom/path"
113113

114-
anyio.run(_test)
114+
anyio.run(_test)

tests/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,4 @@ async def mock_receive():
199199
call_kwargs = mock_transport_class.call_args.kwargs
200200
assert call_kwargs["options"].continue_conversation is True
201201

202-
anyio.run(_test)
202+
anyio.run(_test)

tests/test_subprocess_buffering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,4 +304,4 @@ async def _test() -> None:
304304
assert messages[2]["type"] == "system"
305305
assert messages[2]["subtype"] == "end"
306306

307-
anyio.run(_test)
307+
anyio.run(_test)

tests/test_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,4 @@ async def _test():
155155

156156
assert "/this/directory/does/not/exist" in str(exc_info.value)
157157

158-
anyio.run(_test)
158+
anyio.run(_test)

0 commit comments

Comments
 (0)