Skip to content

Commit 642456e

Browse files
committed
clean up typing
1 parent 6f9c801 commit 642456e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/format/ipynb/format-ipynb.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ export function ipynbFormat(): Format {
8181
// read notebook
8282
const nb = jupyterFromFile(output);
8383

84-
// We 'hide' widget metafrom the YAML by encoding it to
84+
// We 'hide' widget metadata from the YAML by encoding it to
8585
// prevent the YAML representation from mangling it. Restore
8686
// it here if it is so hidden
87-
const widgets = nb.metadata.widgets;
87+
const widgets = nb.metadata.widgets as unknown;
8888
if (widgets && typeof widgets === "string") {
8989
nb.metadata.widgets = JSON.parse(
9090
new TextDecoder().decode(base64decode(widgets)),

0 commit comments

Comments
 (0)