Skip to content

Commit 5f3099a

Browse files
Fix Python ruff lint errors: unused imports, import sort order, line length
1 parent fac218c commit 5f3099a

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

python/copilot/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
ProviderConfig,
4545
ReasoningEffort,
4646
SectionTransformFn,
47-
SessionCapabilities,
4847
SessionHooks,
4948
SystemMessageConfig,
5049
UserInputHandler,

python/copilot/session.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
Action,
2626
Kind,
2727
Level,
28-
RequestedSchema,
29-
RequestedSchemaType,
3028
Property,
3129
PropertyType,
30+
RequestedSchema,
31+
RequestedSchemaType,
3232
ResultResult,
3333
SessionCommandsHandlePendingCommandParams,
3434
SessionLogParams,
@@ -38,7 +38,6 @@
3838
SessionRpc,
3939
SessionToolsHandlePendingToolCallParams,
4040
SessionUIElicitationParams,
41-
SessionUIElicitationResult,
4241
SessionUIHandlePendingElicitationParams,
4342
SessionUIHandlePendingElicitationParamsResult,
4443
)
@@ -329,7 +328,8 @@ class ElicitationResult(TypedDict, total=False):
329328
"""Result returned from an elicitation request."""
330329

331330
action: Required[Literal["accept", "decline", "cancel"]]
332-
"""User action: ``"accept"`` (submitted), ``"decline"`` (rejected), or ``"cancel"`` (dismissed)."""
331+
"""User action: ``"accept"`` (submitted), ``"decline"`` (rejected),
332+
or ``"cancel"`` (dismissed)."""
333333
content: dict[str, ElicitationFieldValue]
334334
"""Form values submitted by the user (present when action is ``"accept"``)."""
335335

python/test_commands_and_elicitation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
)
2121
from e2e.testharness import CLI_PATH
2222

23-
2423
# ============================================================================
2524
# Commands
2625
# ============================================================================
@@ -567,10 +566,10 @@ async def test_capabilities_changed_event_updates_session(self):
567566
session._set_capabilities({})
568567

569568
from copilot.generated.session_events import (
569+
UI,
570570
Data,
571571
SessionEvent,
572572
SessionEventType,
573-
UI,
574573
)
575574

576575
event = SessionEvent(

0 commit comments

Comments
 (0)