Skip to content

Commit 9f746df

Browse files
patnikoCopilot
andcommitted
fix: wrap long docstring line in client.py to pass ruff E501
Pre-existing ruff line-length violation in get_last_session_id docstring example that was failing CI on main. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2da79c8 commit 9f746df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/copilot/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,8 @@ async def get_last_session_id(self) -> str | None:
977977
Example:
978978
>>> last_id = await client.get_last_session_id()
979979
>>> if last_id:
980-
... session = await client.resume_session(last_id, {"on_permission_request": PermissionHandler.approve_all})
980+
... config = {"on_permission_request": PermissionHandler.approve_all}
981+
... session = await client.resume_session(last_id, config)
981982
"""
982983
if not self._client:
983984
raise RuntimeError("Client not connected")

0 commit comments

Comments
 (0)