From f724e3f06c28819dafde4e9bdff9948fea8e1f65 Mon Sep 17 00:00:00 2001 From: Vishak Baddur Date: Fri, 22 May 2026 19:16:49 -0500 Subject: [PATCH 1/2] fix(table): accept ChartDataType in mo.ui.table to resolve pyright error when passing chart.value --- marimo/_plugins/ui/_impl/table.py | 5 ++++- marimo/_plugins/ui/_impl/utils/dataframe.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/marimo/_plugins/ui/_impl/table.py b/marimo/_plugins/ui/_impl/table.py index f817ee60a78..22dd568b29c 100644 --- a/marimo/_plugins/ui/_impl/table.py +++ b/marimo/_plugins/ui/_impl/table.py @@ -541,7 +541,10 @@ def __init__( data: ListOrTuple[str | int | float | bool | MIME | None] | ListOrTuple[dict[str, JSONType]] | dict[str, ListOrTuple[JSONType]] - | IntoDataFrame, + | list[dict[str, Any]] + | dict[str, list[Any]] + | IntoDataFrame + | IntoLazyFrame, pagination: bool | None = None, selection: Literal["single", "multi", "single-cell", "multi-cell"] | None = "multi", diff --git a/marimo/_plugins/ui/_impl/utils/dataframe.py b/marimo/_plugins/ui/_impl/utils/dataframe.py index 68ba9008d7e..a724bc0cbe7 100644 --- a/marimo/_plugins/ui/_impl/utils/dataframe.py +++ b/marimo/_plugins/ui/_impl/utils/dataframe.py @@ -3,7 +3,7 @@ from typing import Any, TypeVar, Union -from narwhals.typing import IntoDataFrame +from narwhals.typing import IntoDataFrame, IntoLazyFrame from marimo import _loggers from marimo._output.data import data as mo_data @@ -69,8 +69,11 @@ def get_default_csv_encoding() -> str: list[JSONType], ListOrTuple[Union[str, int, float, bool, MIME, None]], ListOrTuple[dict[str, JSONType]], + list[dict[str, Any]], + dict[str, list[Any]], dict[str, ListOrTuple[JSONType]], IntoDataFrame, + IntoLazyFrame, ] From 2069137fda719a9c08ae6417b99d4c6142f4e93d Mon Sep 17 00:00:00 2001 From: Vishak Baddur Date: Mon, 25 May 2026 17:19:02 -0500 Subject: [PATCH 2/2] chore: trigger CI re-run for flaky memory test