Skip to content

Commit 24d8d83

Browse files
committed
Stop setting show_footer=False when creating Table because that is the default
1 parent 3e21e7a commit 24d8d83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/rich_tables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(self) -> None:
6868
@cmd2.with_category(TABLE_CATEGORY)
6969
def do_cities(self, _: cmd2.Statement) -> None:
7070
"""Display the cities with the largest population."""
71-
table = Table(show_footer=False)
71+
table = Table()
7272
table.title = "10 Largest Cities by Population 2025"
7373
table.caption = "Data from https://worldpopulationreview.com/"
7474

@@ -85,7 +85,7 @@ def do_cities(self, _: cmd2.Statement) -> None:
8585
@cmd2.with_category(TABLE_CATEGORY)
8686
def do_countries(self, _: cmd2.Statement) -> None:
8787
"""Display the countries with the largest population."""
88-
table = Table(show_footer=False)
88+
table = Table()
8989
table.title = "10 Largest Countries by Population 2025"
9090
table.caption = "Data from https://worldpopulationreview.com/ and Wikipedia"
9191

0 commit comments

Comments
 (0)