Skip to content

Commit 5c375de

Browse files
committed
Lint
1 parent 16938c6 commit 5c375de

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/akernel/kernel.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
from __future__ import annotations
22

33
import asyncio
4-
import json
54
import platform
65
import sys
76
from io import StringIO
87
from contextvars import ContextVar
9-
from typing import Dict, Any, List, Union, Awaitable, cast
8+
from typing import Dict, Any, List, Awaitable
109

11-
from anyio import Event, WouldBlock, create_memory_object_stream, create_task_group, from_thread, get_cancelled_exc_class, run, sleep, to_thread
10+
from anyio import Event, create_memory_object_stream, create_task_group, from_thread, get_cancelled_exc_class, run, sleep, to_thread
1211
import comm # type: ignore
1312
from akernel.comm.manager import CommManager
1413
from akernel.display import display
@@ -190,7 +189,7 @@ async def thread_execute(self):
190189
result = await async_cell()
191190
except get_cancelled_exc_class():
192191
return
193-
except Exception as exc:
192+
except Exception:
194193
exc_type, exception, traceback = sys.exc_info()
195194
from_thread.run_sync(self.from_thread_send_stream.send_nowait, (result, exception, traceback))
196195

0 commit comments

Comments
 (0)