Skip to content

Commit

Permalink
fix: use built-in __dict__
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonMarchand committed Sep 16, 2024
1 parent d751864 commit 0f3d61b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ipyaladin/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"""

from collections.abc import Callable
from dataclasses import asdict
import io
import pathlib
from json import JSONDecodeError
Expand Down Expand Up @@ -534,7 +533,7 @@ def add_markers(
self.send(
{
"event_name": "add_marker",
"markers": [asdict(marker) for marker in markers],
"markers": [marker.__dict__ for marker in markers],
"options": catalog_options,
}
)
Expand Down

0 comments on commit 0f3d61b

Please sign in to comment.