Skip to content

Commit 46c24e2

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

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

ipykernel/debugger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ class Debugger:
292292
"inspectVariables",
293293
"richInspectVariables",
294294
"modules",
295-
"copyToGlobals"
295+
"copyToGlobals",
296296
]
297297

298298
def __init__(
@@ -639,7 +639,7 @@ async def copyToGlobals(self, message):
639639
"arguments": {
640640
"expression": expression,
641641
"value": src_var_name,
642-
"frameId": src_frame_id
642+
"frameId": src_frame_id,
643643
},
644644
}
645645
)

ipykernel/tests/test_debugger.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,9 @@ def my_test():
320320
while msg.get("msg_type") != "debug_event" or msg["content"].get("event") != "stopped":
321321
msg = kernel_with_debug.get_iopub_msg(timeout=TIMEOUT)
322322

323-
stacks = wait_for_debug_request(
324-
kernel_with_debug,
325-
"stackTrace",
326-
{"threadId": 1}
327-
)["body"]["stackFrames"]
323+
stacks = wait_for_debug_request(kernel_with_debug, "stackTrace", {"threadId": 1})["body"][
324+
"stackFrames"
325+
]
328326

329327
# Get local frame id
330328
frame_id = stacks[0]["id"]
@@ -341,11 +339,9 @@ def my_test():
341339
)
342340

343341
# Get the scopes
344-
scopes = wait_for_debug_request(
345-
kernel_with_debug,
346-
"scopes",
347-
{"frameId": frame_id}
348-
)["body"]["scopes"]
342+
scopes = wait_for_debug_request(kernel_with_debug, "scopes", {"frameId": frame_id})["body"][
343+
"scopes"
344+
]
349345

350346
# Get the local variable
351347
locals_ = wait_for_debug_request(

0 commit comments

Comments
 (0)