Skip to content

Commit d16fa87

Browse files
Lint
Co-Authored-By: SteveSandersonMS <1101362+SteveSandersonMS@users.noreply.github.com>
1 parent e15e830 commit d16fa87

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

python/copilot/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,8 @@ async def create_session(
14011401
if self._session_fs_config:
14021402
if create_session_fs_handler is None:
14031403
raise ValueError(
1404-
"create_session_fs_handler is required in session config when session_fs is enabled in client options."
1404+
"create_session_fs_handler is required in session config when "
1405+
"session_fs is enabled in client options."
14051406
)
14061407
session._client_session_apis.session_fs = create_session_fs_handler(session)
14071408
session._register_tools(tools)
@@ -1632,7 +1633,8 @@ async def resume_session(
16321633
if self._session_fs_config:
16331634
if create_session_fs_handler is None:
16341635
raise ValueError(
1635-
"create_session_fs_handler is required in session config when session_fs is enabled in client options."
1636+
"create_session_fs_handler is required in session config when "
1637+
"session_fs is enabled in client options."
16361638
)
16371639
session._client_session_apis.session_fs = create_session_fs_handler(session)
16381640
session._register_tools(tools)

python/copilot/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
RequestedSchema,
3232
RequestedSchemaType,
3333
ResultResult,
34-
SessionFsHandler,
3534
SessionCommandsHandlePendingCommandParams,
35+
SessionFsHandler,
3636
SessionLogParams,
3737
SessionModelSwitchToParams,
3838
SessionPermissionsHandlePendingPermissionRequestParams,

python/e2e/test_session_fs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
from copilot.client import ExternalServerConfig, SubprocessConfig
1616
from copilot.generated.rpc import (
1717
SessionFSExistsResult,
18-
SessionFSReadFileResult,
1918
SessionFSReaddirResult,
2019
SessionFSReaddirWithTypesResult,
20+
SessionFSReadFileResult,
2121
SessionFSStatResult,
2222
)
2323
from copilot.generated.session_events import SessionEvent
@@ -243,7 +243,7 @@ async def exists(self, params) -> SessionFSExistsResult:
243243
async def stat(self, params) -> SessionFSStatResult:
244244
path = provider_path(self._provider_root, self._session_id, params.path)
245245
info = path.stat()
246-
timestamp = dt.datetime.fromtimestamp(info.st_mtime, tz=dt.timezone.utc).isoformat()
246+
timestamp = dt.datetime.fromtimestamp(info.st_mtime, tz=dt.UTC).isoformat()
247247
if timestamp.endswith("+00:00"):
248248
timestamp = f"{timestamp[:-6]}Z"
249249
return SessionFSStatResult.from_dict(

0 commit comments

Comments
 (0)