Skip to content

Commit fbdb1fd

Browse files
committed
fix maxcolwidths doesn't accept tuple
1 parent be318be commit fbdb1fd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,5 +1123,5 @@ Bart Broere, Vilhelm Prytz, Alexander Gažo, Hugo van Kemenade,
11231123
jamescooke, Matt Warner, Jérôme Provensal, Kevin Deldycke,
11241124
Kian-Meng Ang, Kevin Patterson, Shodhan Save, cleoold, KOLANICH,
11251125
Vijaya Krishna Kasula, Furcy Pin, Christian Fibich, Shaun Duncan,
1126-
Dimitri Papadopoulos.
1126+
Dimitri Papadopoulos, Racerroar.
11271127

tabulate/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2071,6 +2071,8 @@ def tabulate(
20712071
list_of_lists, separating_lines = _remove_separating_lines(list_of_lists)
20722072

20732073
if maxcolwidths is not None:
2074+
if type(maxcolwidths) is tuple: # Check if tuple, convert to list if so
2075+
maxcolwidths = list(maxcolwidths)
20742076
if len(list_of_lists):
20752077
num_cols = len(list_of_lists[0])
20762078
else:

0 commit comments

Comments
 (0)