Skip to content

Commit a421eed

Browse files
committed
Ruff
1 parent 94d2feb commit a421eed

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

tests/test_client.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ async def _test():
2020
) as mock_process:
2121
# Mock the async generator
2222
async def mock_generator():
23-
yield AssistantMessage(content=[TextBlock(text="4")], model="claude-opus-4-1-20250805")
23+
yield AssistantMessage(
24+
content=[TextBlock(text="4")], model="claude-opus-4-1-20250805"
25+
)
2426

2527
mock_process.return_value = mock_generator()
2628

@@ -43,7 +45,10 @@ async def _test():
4345
) as mock_process:
4446

4547
async def mock_generator():
46-
yield AssistantMessage(content=[TextBlock(text="Hello!")], model="claude-opus-4-1-20250805")
48+
yield AssistantMessage(
49+
content=[TextBlock(text="Hello!")],
50+
model="claude-opus-4-1-20250805",
51+
)
4752

4853
mock_process.return_value = mock_generator()
4954

tests/test_types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ def test_assistant_message_with_text(self):
3232
def test_assistant_message_with_thinking(self):
3333
"""Test creating an AssistantMessage with thinking content."""
3434
thinking_block = ThinkingBlock(thinking="I'm thinking...", signature="sig-123")
35-
msg = AssistantMessage(content=[thinking_block], model="claude-opus-4-1-20250805")
35+
msg = AssistantMessage(
36+
content=[thinking_block], model="claude-opus-4-1-20250805"
37+
)
3638
assert len(msg.content) == 1
3739
assert msg.content[0].thinking == "I'm thinking..."
3840
assert msg.content[0].signature == "sig-123"

0 commit comments

Comments
 (0)