Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return str(obj)
headers = headers if isinstance(headers, list) else [
'hash',
'channel',
'title',
'topic',
'size',
'start',
'duration',
'age',
'region',
'downloaded']
# noinspection PyTypeChecker
table = Table(box=box.MINIMAL_DOUBLE_HEAD)
for h in headers:
table.add_column(h)
for row in shows:
table.add_row(*[_escape_cell(t, row.get(t)) for t in headers])
console.print(table)