Skip to content

Commit ecd5baa

Browse files
committed
fix: resolve ruff lint errors in claude agent sdk files
1 parent 6a5464f commit ecd5baa

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎examples/example-ai-claude-agent-sdk/multi_turn.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55

66
from claude_agent_sdk import AssistantMessage, ResultMessage
7-
from claude_agent_sdk.types import ClaudeAgentOptions, TextBlock, ToolUseBlock
7+
from claude_agent_sdk.types import ClaudeAgentOptions, TextBlock
88
from posthog import Posthog
99
from posthog.ai.claude_agent_sdk import PostHogClaudeSDKClient
1010

‎posthog/ai/claude_agent_sdk/client.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
from posthog.ai.claude_agent_sdk.processor import (
2727
PostHogClaudeAgentProcessor,
2828
_GenerationTracker,
29-
_ensure_serializable,
3029
)
3130
from posthog.client import Client
3231

‎posthog/test/ai/claude_agent_sdk/test_processor.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from posthog.ai.claude_agent_sdk import (
2020
PostHogClaudeAgentProcessor,
2121
instrument,
22-
query,
2322
)
2423

2524
CLAUDE_AGENT_SDK_AVAILABLE = True
@@ -548,7 +547,7 @@ async def test_all_messages_yielded_unchanged(self, processor, mock_client):
548547
assert len(collected) == len(original_messages)
549548
# Verify types match
550549
for orig, got in zip(original_messages, collected):
551-
assert type(orig) == type(got)
550+
assert type(orig) is type(got)
552551

553552

554553
class TestInstrumentFunction:

0 commit comments

Comments
 (0)