Skip to content

Commit e0f6990

Browse files
stephentoubCopilot
andcommitted
Fix Python SDK Ruff failures
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent bf008d4 commit e0f6990

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

python/copilot/session.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@
5454
ExternalToolRequestedData,
5555
PermissionRequest,
5656
PermissionRequestedData,
57-
SessionEvent,
5857
SessionErrorData,
59-
SessionEventType,
58+
SessionEvent,
6059
SessionIdleData,
6160
session_event_from_dict,
6261
)
@@ -1270,7 +1269,9 @@ def _handle_broadcast_event(self, event: SessionEvent) -> None:
12701269
return # This client doesn't handle permissions; another client will.
12711270

12721271
asyncio.ensure_future(
1273-
self._execute_permission_and_respond(request_id, permission_request, perm_handler)
1272+
self._execute_permission_and_respond(
1273+
request_id, permission_request, perm_handler
1274+
)
12741275
)
12751276

12761277
case CommandExecuteData() as data:

python/e2e/test_session_fs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@
1313

1414
from copilot import CopilotClient, SessionFsConfig, define_tool
1515
from copilot.client import ExternalServerConfig, SubprocessConfig
16-
from copilot.generated.session_events import SessionCompactionCompleteData
1716
from copilot.generated.rpc import (
1817
SessionFSExistsResult,
1918
SessionFSReaddirResult,
2019
SessionFSReaddirWithTypesResult,
2120
SessionFSReadFileResult,
2221
SessionFSStatResult,
2322
)
24-
from copilot.generated.session_events import SessionEvent
23+
from copilot.generated.session_events import SessionCompactionCompleteData, SessionEvent
2524
from copilot.session import PermissionHandler
2625

2726
from .testharness import E2ETestContext

0 commit comments

Comments
 (0)