Skip to content

Commit c4c149f

Browse files
stephentoubCopilot
andcommitted
Fix Python formatting and lint in types.py
- Add missing blank lines between SessionConfig and AzureProviderOptions (ruff format) - Remove unnecessary quotes on SessionEvent type annotations (ruff lint UP037) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1044258 commit c4c149f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

python/copilot/types.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,9 @@ class SessionConfig(TypedDict, total=False):
511511
# session.create RPC is issued, ensuring early events (e.g. session.start)
512512
# are delivered. Equivalent to calling session.on(handler) immediately
513513
# after creation, but executes earlier in the lifecycle so no events are missed.
514-
on_event: Callable[["SessionEvent"], None]
514+
on_event: Callable[[SessionEvent], None]
515+
516+
515517
class AzureProviderOptions(TypedDict, total=False):
516518
"""Azure-specific provider configuration"""
517519

@@ -577,7 +579,7 @@ class ResumeSessionConfig(TypedDict, total=False):
577579
disable_resume: bool
578580
# Optional event handler registered before the session.resume RPC is issued,
579581
# ensuring early events are delivered. See SessionConfig.on_event.
580-
on_event: Callable[["SessionEvent"], None]
582+
on_event: Callable[[SessionEvent], None]
581583

582584

583585
# Options for sending a message to a session

0 commit comments

Comments
 (0)