Skip to content

Commit f549681

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c8135f4 commit f549681

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ipykernel/ipkernel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,9 @@ async def run_cell(*args, **kwargs):
460460
# runner isn't already running,
461461
# make synchronous call,
462462
# letting shell dispatch to loop runners
463-
res = shell.run_cell(code, store_history=store_history, silent=silent, **do_execute_args)
463+
res = shell.run_cell(
464+
code, store_history=store_history, silent=silent, **do_execute_args
465+
)
464466
finally:
465467
self._restore_input()
466468

tests/inprocess/test_kernel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ async def test_do_execute(kc):
120120
await kernel.do_execute("a=1", True)
121121
assert kernel.shell.user_ns["a"] == 1
122122

123+
123124
async def test_cell_meta_do_execute():
124-
kernel:InProcessKernel = InProcessKernel()
125+
kernel: InProcessKernel = InProcessKernel()
125126
await kernel.do_execute("a=1", True, cell_meta={"testkey": "testvalue"})
126127
assert kernel.shell.user_ns["a"] == 1

0 commit comments

Comments
 (0)