@@ -90,8 +90,8 @@ def __init__(
9090 (defaults to True)
9191 :param max_data_lines: maximum lines allowed in a data cell. If line count exceeds this, then the final
9292 line displayed will be truncated with an ellipsis. (defaults to INFINITY)
93- :raises: ValueError if width is less than 1
94- :raises: ValueError if max_data_lines is less than 1
93+ :raises ValueError: if width is less than 1
94+ :raises ValueError: if max_data_lines is less than 1
9595 """
9696 self .header = header
9797
@@ -136,7 +136,7 @@ def __init__(self, cols: Sequence[Column], *, tab_width: int = 4) -> None:
136136 :param cols: column definitions for this table
137137 :param tab_width: all tabs will be replaced with this many spaces. If a row's fill_char is a tab,
138138 then it will be converted to one space.
139- :raises: ValueError if tab_width is less than 1
139+ :raises ValueError: if tab_width is less than 1
140140 """
141141 if tab_width < 1 :
142142 raise ValueError ("Tab width cannot be less than 1" )
@@ -441,9 +441,9 @@ def generate_row(
441441 :param post_line: string to print after each line of a row. This can be used for padding after
442442 the last cell's text and a right row border. (Defaults to blank)
443443 :return: row string
444- :raises: ValueError if row_data isn't the same length as self.cols
445- :raises: TypeError if fill_char is more than one character (not including ANSI style sequences)
446- :raises: ValueError if fill_char, pre_line, inter_cell, or post_line contains an unprintable
444+ :raises ValueError: if row_data isn't the same length as self.cols
445+ :raises TypeError: if fill_char is more than one character (not including ANSI style sequences)
446+ :raises ValueError: if fill_char, pre_line, inter_cell, or post_line contains an unprintable
447447 character like a newline
448448 """
449449
@@ -568,10 +568,10 @@ def __init__(
568568 want a divider row. Defaults to dash. (Cannot be a line breaking character)
569569 :param header_bg: optional background color for header cells (defaults to None)
570570 :param data_bg: optional background color for data cells (defaults to None)
571- :raises: ValueError if tab_width is less than 1
572- :raises: ValueError if column_spacing is less than 0
573- :raises: TypeError if divider_char is longer than one character
574- :raises: ValueError if divider_char is an unprintable character
571+ :raises ValueError: if tab_width is less than 1
572+ :raises ValueError: if column_spacing is less than 0
573+ :raises TypeError: if divider_char is longer than one character
574+ :raises ValueError: if divider_char is an unprintable character
575575 """
576576 super ().__init__ (cols , tab_width = tab_width )
577577
@@ -624,8 +624,8 @@ def base_width(cls, num_cols: int, *, column_spacing: int = 2) -> int:
624624 :param num_cols: how many columns the table will have
625625 :param column_spacing: how many spaces to place between columns. Defaults to 2.
626626 :return: base width
627- :raises: ValueError if column_spacing is less than 0
628- :raises: ValueError if num_cols is less than 1
627+ :raises ValueError: if column_spacing is less than 0
628+ :raises ValueError: if num_cols is less than 1
629629 """
630630 if num_cols < 1 :
631631 raise ValueError ("Column count cannot be less than 1" )
@@ -683,7 +683,7 @@ def generate_data_row(self, row_data: Sequence[Any]) -> str:
683683
684684 :param row_data: data with an entry for each column in the row
685685 :return: data row string
686- :raises: ValueError if row_data isn't the same length as self.cols
686+ :raises ValueError: if row_data isn't the same length as self.cols
687687 """
688688 if len (row_data ) != len (self .cols ):
689689 raise ValueError ("Length of row_data must match length of cols" )
@@ -710,7 +710,7 @@ def generate_table(self, table_data: Sequence[Sequence[Any]], *, include_header:
710710 :param include_header: If True, then a header will be included at top of table. (Defaults to True)
711711 :param row_spacing: A number 0 or greater specifying how many blank lines to place between
712712 each row (Defaults to 1)
713- :raises: ValueError if row_spacing is less than 0
713+ :raises ValueError: if row_spacing is less than 0
714714 """
715715 if row_spacing < 0 :
716716 raise ValueError ("Row spacing cannot be less than 0" )
@@ -769,8 +769,8 @@ def __init__(
769769 :param border_bg: optional background color for borders (defaults to None)
770770 :param header_bg: optional background color for header cells (defaults to None)
771771 :param data_bg: optional background color for data cells (defaults to None)
772- :raises: ValueError if tab_width is less than 1
773- :raises: ValueError if padding is less than 0
772+ :raises ValueError: if tab_width is less than 1
773+ :raises ValueError: if padding is less than 0
774774 """
775775 super ().__init__ (cols , tab_width = tab_width )
776776 self .empty_data = [EMPTY ] * len (self .cols )
@@ -825,7 +825,7 @@ def base_width(cls, num_cols: int, *, column_borders: bool = True, padding: int
825825 :param column_borders: if True, borders between columns will be included in the calculation (Defaults to True)
826826 :param padding: number of spaces between text and left/right borders of cell
827827 :return: base width
828- :raises: ValueError if num_cols is less than 1
828+ :raises ValueError: if num_cols is less than 1
829829 """
830830 if num_cols < 1 :
831831 raise ValueError ("Column count cannot be less than 1" )
@@ -974,7 +974,7 @@ def generate_data_row(self, row_data: Sequence[Any]) -> str:
974974
975975 :param row_data: data with an entry for each column in the row
976976 :return: data row string
977- :raises: ValueError if row_data isn't the same length as self.cols
977+ :raises ValueError: if row_data isn't the same length as self.cols
978978 """
979979 if len (row_data ) != len (self .cols ):
980980 raise ValueError ("Length of row_data must match length of cols" )
@@ -1075,8 +1075,8 @@ def __init__(
10751075 :param header_bg: optional background color for header cells (defaults to None)
10761076 :param odd_bg: optional background color for odd numbered data rows (defaults to None)
10771077 :param even_bg: optional background color for even numbered data rows (defaults to StdBg.DARK_GRAY)
1078- :raises: ValueError if tab_width is less than 1
1079- :raises: ValueError if padding is less than 0
1078+ :raises ValueError: if tab_width is less than 1
1079+ :raises ValueError: if padding is less than 0
10801080 """
10811081 super ().__init__ (
10821082 cols ,
0 commit comments