MCPcopy Create free account
hub / github.com/astanin/python-tabulate / _is_separating_line

Function _is_separating_line

tabulate/__init__.py:126–133  ·  view source on GitHub ↗
(row)

Source from the content-addressed store, hash-verified

124
125
126def _is_separating_line(row):
127 row_type = type(row)
128 is_sl = (row_type == list or row_type == str) and (
129 (len(row) >= 1 and _is_separating_line_value(row[0]))
130 or (len(row) >= 2 and _is_separating_line_value(row[1]))
131 )
132
133 return is_sl
134
135
136def _pipe_segment_with_colons(align, colwidth):

Callers 3

_remove_separating_linesFunction · 0.85
_normalize_tabular_dataFunction · 0.85
_format_tableFunction · 0.85

Calls 1

Tested by

no test coverage detected