Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mscolnick committed Feb 26, 2025
1 parent b164219 commit be148f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions marimo/_plugins/ui/_impl/from_anywidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __init__(self, widget: AnyWidget):

# Get state with custom serializers properly applied
state = widget.get_state()
state_no_buffers, buffer_paths, buffers = _remove_buffers(state) # type: ignore
_state_no_buffers, buffer_paths, buffers = _remove_buffers(state) # type: ignore

# Remove widget-specific system traits not needed for the frontend
ignored_traits = [
Expand All @@ -112,10 +112,10 @@ def __init__(self, widget: AnyWidget):
]

# Filter out system traits from the serialized state
# This should include the binary data,
# see marimo/_smoke_tests/issues/2366-anywidget-binary.py
json_args: T = {
k: v
for k, v in state_no_buffers.items()
if k not in ignored_traits
k: v for k, v in state.items() if k not in ignored_traits
}

js: str = widget._esm if hasattr(widget, "_esm") else "" # type: ignore [unused-ignore] # noqa: E501
Expand Down

0 comments on commit be148f4

Please sign in to comment.