def make_table(title: str, cols: Sequence[str], rows: Sequence[Any], has_row_class: bool=False) -> str:
    if (not has_row_class):

        def fix_row(row: Any) -> Dict[(str, Any)]:
            return dict(cells=row, row_class=None)
        rows = list(map(fix_row, rows))
    data = dict(title=title, cols=cols, rows=rows)
    content = loader.render_to_string('analytics/ad_hoc_query.html', dict(data=data))
    return content
def make_table(title: str, cols: Sequence[str], rows: Sequence[Any], has_row_class: bool=False) -> str:
    if (not has_row_class):

        def fix_row(row: Any) -> Dict[(str, Any)]:
            return dict(cells=row, row_class=None)
        rows = list(map(fix_row, rows))
    data = dict(title=title, cols=cols, rows=rows)
    content = loader.render_to_string('analytics/ad_hoc_query.html', dict(data=data))
    return content