textual
textual copied to clipboard
DataTable `clear` is missing
DataTable doc refers to a clear()
method, but doesn't exists:
>>> from textual.widgets import DataTable
>>> test = DataTable()
>>> test.clear()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'DataTable' object has no attribute 'clear'
>>> test.add_row('test')
The docs were updated a little prematurely - this'll be part of the next release (which I think will be this weekend, but @willmcgugan can confirm)
0.5.0 added the method DataTable.clear
😃