Skip to content

Commit 93e4403

Browse files
committed
Fix circular import
1 parent 4569594 commit 93e4403

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

nbclient/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def error_from_timeout_and_cell(
2222
cls,
2323
msg: str,
2424
timeout: int,
25-
cell: NotebookNode) -> CellTimeoutError:
25+
cell: NotebookNode):
2626
if cell and cell.source:
2727
src_by_lines = cell.source.strip().split("\n")
2828
src = (
@@ -81,7 +81,7 @@ def __unicode__(self) -> str:
8181
def from_cell_and_msg(
8282
cls,
8383
cell: NotebookNode,
84-
msg: Dict) -> CellExecutionError:
84+
msg: Dict):
8585
"""Instantiate from a code cell object and a message contents
8686
(message is either execute_reply or error)
8787
"""

nbclient/output_widget.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from typing import Dict, List, Any, Optional
44

55
from jupyter_client.client import KernelClient
6-
from nbclient import NotebookClient
76

87

98
class OutputWidget:
@@ -13,12 +12,12 @@ def __init__(
1312
comm_id: str,
1413
state: Dict[str, Any],
1514
kernel_client: KernelClient,
16-
executor: NotebookClient) -> None:
15+
executor) -> None:
1716

1817
self.comm_id: str = comm_id
1918
self.state: Dict[str, Any] = state
2019
self.kernel_client: KernelClient = kernel_client
21-
self.executor: NotebookClient = executor
20+
self.executor = executor
2221
self.topic: bytes = ('comm-%s' % self.comm_id).encode('ascii')
2322
self.outputs: List = self.state['outputs']
2423
self.clear_before_next_output: bool = False

0 commit comments

Comments
 (0)