From 38259d70aa06a2e65bbdb295875698f34ec4448f Mon Sep 17 00:00:00 2001 From: DanCardin Date: Tue, 30 Apr 2024 07:32:13 -0400 Subject: [PATCH] fix: Table data_model error message. --- src/python-fastui/fastui/components/tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python-fastui/fastui/components/tables.py b/src/python-fastui/fastui/components/tables.py index 53d35ce7..23c641c6 100644 --- a/src/python-fastui/fastui/components/tables.py +++ b/src/python-fastui/fastui/components/tables.py @@ -40,7 +40,7 @@ def _fill_columns(self) -> _te.Self: try: data_model_type = type(self.data[0]) except IndexError: - raise ValueError('Cannot infer model from empty data, please set `Table(..., model=MyModel)`') + raise ValueError('Cannot infer model from empty data, please set `Table(..., data_model=MyModel)`') if self.columns is None: self.columns = [