Add type annotation to the DataTable

Now that the new DataTable is merged in.
This commit is contained in:
Dave Pearson
2023-02-15 11:22:58 +00:00
parent 3ccfb5370f
commit 2379bb46e0

View File

@@ -27,7 +27,7 @@ class WidgetDisableTestApp(App[None]):
@property
def data_table(self) -> DataTable:
data_table = DataTable()
data_table = DataTable[str]()
data_table.add_columns("Column 1", "Column 2", "Column 3", "Column 4")
data_table.add_rows(
[(str(n), str(n * 10), str(n * 100), str(n * 1000)) for n in range(100)]