Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 8, 2025
1 parent f8e74ff commit 0267765
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jupyter_ydoc/ybasedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from __future__ import annotations

from abc import ABC, abstractmethod
from typing import Any, Callable, Dict
from typing import Any, Callable

from pycrdt import Awareness, Doc, Subscription, TypedDoc, TypedMap, UndoManager

Expand Down
6 changes: 3 additions & 3 deletions jupyter_ydoc/ynotebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import copy
from dataclasses import dataclass
from functools import partial
from typing import Any, Callable, Dict
from typing import Any, Callable
from uuid import uuid4

from pycrdt import Array, Awareness, Doc, Map, Text, TypedArray, TypedMap
Expand Down Expand Up @@ -306,10 +306,10 @@ def set(self, value: dict) -> None:
ymetadata = YMetadata()
self._ymeta.metadata = ymetadata
metadata = nb.get("metadata", {})
# ymetadata.language_info =
# ymetadata.language_info =
# asdict(LanguageInfo(**metadata.get("language_info", {"name": ""})))
ymetadata.language_info = metadata.get("language_info", {"name": ""})
# ymetadata.kernelspec =
# ymetadata.kernelspec =
# asdict(Kernelspec(**metadata.get("kernelspec", {"name": "", "display_name": ""})))
ymetadata.kernelspec = metadata.get("kernelspec", {"name": "", "display_name": ""})

Expand Down

0 comments on commit 0267765

Please sign in to comment.