@@ -40,8 +40,9 @@ class FooterColumnCountMismatchError(ColumnCountMismatchError):
40
40
This class is a subclass of :class:`ColumnCountMismatchError`.
41
41
42
42
Attributes:
43
- footer (Sequence[SupportsStr]): The footer that caused the error
44
- expected_columns (int): The number of columns that were expected
43
+ footer (:class:`Sequence <collections.abc.Sequence>`\ [:class:`SupportsStr`]):
44
+ The footer that caused the error
45
+ expected_columns (:class:`int`): The number of columns that were expected
45
46
"""
46
47
47
48
def __init__ (self , footer : Sequence [SupportsStr ], expected_columns : int ):
@@ -63,9 +64,11 @@ class BodyColumnCountMismatchError(ColumnCountMismatchError):
63
64
This class is a subclass of :class:`ColumnCountMismatchError`.
64
65
65
66
Attributes:
66
- body (Sequence[Sequence[SupportsStr]]): The body that caused the error
67
- expected_columns (int): The number of columns that were expected
68
- first_invalid_row (Sequence[SupportsStr]): The first row with an invalid column count
67
+ body (:class:`Sequence <collections.abc.Sequence>`\ [\ :class:`Sequence <collections.abc.Sequence>`\ [:class:`SupportsStr`]]):
68
+ The body that caused the error
69
+ expected_columns (:class:`int`): The number of columns that were expected
70
+ first_invalid_row (:class:`Sequence <collections.abc.Sequence>`\ [:class:`SupportsStr`]):
71
+ The first row with an invalid column count
69
72
"""
70
73
71
74
def __init__ (self , body : Sequence [Sequence [SupportsStr ]], expected_columns : int ):
@@ -90,8 +93,9 @@ class AlignmentCountMismatchError(ColumnCountMismatchError):
90
93
This class is a subclass of :class:`ColumnCountMismatchError`.
91
94
92
95
Attributes:
93
- alignments (Sequence[Alignment]): The alignments that caused the error
94
- expected_columns (int): The number of columns that were expected
96
+ alignments (:class:`Sequence <collections.abc.Sequence>`\ [:class:`Alignment`]):
97
+ The alignments that caused the error
98
+ expected_columns (:class:`int`): The number of columns that were expected
95
99
"""
96
100
97
101
def __init__ (self , alignments : Sequence [Alignment ], expected_columns : int ):
@@ -113,8 +117,9 @@ class ColumnWidthsCountMismatchError(ColumnCountMismatchError):
113
117
This class is a subclass of :class:`ColumnCountMismatchError`.
114
118
115
119
Attributes:
116
- column_widths (Sequence[Optional[int]]): The column widths that caused the error
117
- expected_columns (int): The number of columns that were expected
120
+ column_widths (:class:`Sequence <collections.abc.Sequence>`\ [:data:`Optional <typing.Optional>`\ [:class:`int`]]):
121
+ The column widths that caused the error
122
+ expected_columns (:class:`int`): The number of columns that were expected
118
123
"""
119
124
120
125
def __init__ (self , column_widths : Sequence [int | None ], expected_columns : int ):
@@ -148,7 +153,7 @@ class InvalidCellPaddingError(TableOptionError):
148
153
This class is a subclass of :class:`TableOptionError`.
149
154
150
155
Attributes:
151
- padding (int): The padding that caused the error
156
+ padding (:class:` int` ): The padding that caused the error
152
157
"""
153
158
154
159
def __init__ (self , padding : int ):
@@ -169,9 +174,9 @@ class ColumnWidthTooSmallError(TableOptionError):
169
174
This class is a subclass of :class:`TableOptionError`.
170
175
171
176
Attributes:
172
- column_index (int): The index of the column that caused the error
173
- column_width (int): The column width that caused the error
174
- min_width (int): The minimum width that is allowed
177
+ column_index (:class:` int` ): The index of the column that caused the error
178
+ column_width (:class:` int` ): The column width that caused the error
179
+ min_width (:class:` int` ): The minimum width that is allowed
175
180
"""
176
181
177
182
def __init__ (self , column_index : int , column_width : int , min_width : int | None = None ):
@@ -208,7 +213,7 @@ class InvalidAlignmentError(TableOptionError):
208
213
This class is a subclass of :class:`TableOptionError`.
209
214
210
215
Attributes:
211
- alignment (Any): The alignment value that caused the error
216
+ alignment (:data:` Any <typing.Any>` ): The alignment value that caused the error
212
217
"""
213
218
214
219
def __init__ (self , alignment : Any ):
@@ -230,8 +235,8 @@ class TableStyleTooLongError(Table2AsciiError, ValueError):
230
235
This class is a subclass of :class:`Table2AsciiError` and :class:`ValueError`.
231
236
232
237
Attributes:
233
- string (str): The string that caused the error
234
- max_characters (int): The maximum number of characters that are allowed
238
+ string (:class:` str` ): The string that caused the error
239
+ max_characters (:class:` int` ): The maximum number of characters that are allowed
235
240
"""
236
241
237
242
def __init__ (self , string : str , max_characters : int ):
@@ -256,8 +261,8 @@ class TableStyleTooShortWarning(UserWarning):
256
261
It can be silenced using :func:`warnings.filterwarnings`.
257
262
258
263
Attributes:
259
- string (str): The string that caused the warning
260
- max_characters (int): The number of characters that :class:`TableStyle` accepts
264
+ string (:class:` str` ): The string that caused the warning
265
+ max_characters (:class:` int` ): The number of characters that :class:`TableStyle` accepts
261
266
"""
262
267
263
268
def __init__ (self , string : str , max_characters : int ):
0 commit comments