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 = [