From 90bbde8d7ef2824b739cd983f3045f95a128ee35 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Wed, 17 Jul 2024 13:03:26 +0100 Subject: [PATCH] Export StringKey from DataTable module (#4760) * Export StringKey from DataTable module * Update CHANGELOG --- CHANGELOG.md | 1 + src/textual/widgets/data_table.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 148ce4a278..8d160f28e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Raise `ValueError` with improved error message when number of cells inserted using `DataTable.add_row` doesn't match the number of columns in the table https://github.com/Textualize/textual/pull/4742 - Add `Tree.move_cursor` to programmatically move the cursor without selecting the node https://github.com/Textualize/textual/pull/4753 - Added `Footer` component style handling of padding for the key/description https://github.com/Textualize/textual/pull/4651 +- `StringKey` is now exported from `data_table` https://github.com/Textualize/textual/pull/4760 ### Fixed diff --git a/src/textual/widgets/data_table.py b/src/textual/widgets/data_table.py index a5eea13542..3b7a56fcc1 100644 --- a/src/textual/widgets/data_table.py +++ b/src/textual/widgets/data_table.py @@ -10,6 +10,7 @@ Row, RowDoesNotExist, RowKey, + StringKey, ) __all__ = [ @@ -24,4 +25,5 @@ "Row", "RowDoesNotExist", "RowKey", + "StringKey", ]