Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pygal/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def render(self, total=False, transpose=False, style=False):
table.append(labels)

if total:
if len(table):
if table:
table[0].append('Total')
else:
table.append([None] * (ln + 1) + ['Total'])
Expand Down
1 change: 1 addition & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ignore = [
"E721", # TODO: do not ignore?
"E731",
"E741",
"PLC0415", # Lazy imports for optional dependencies and circular import avoidance
"PLW2901", # TODO: do not ignore?
"PLW3301", # TODO: do not ignore?
]
Expand Down
Loading