def fix_rows(i: int, fixup_func: Union[(Callable[([Realm], mark_safe)], Callable[([datetime], str)])]) -> None:
    for row in rows:
        row[i] = fixup_func(row[i])
def fix_rows(i: int, fixup_func: Union[(Callable[([Realm], mark_safe)], Callable[([datetime], str)])]) -> None:
    for row in rows:
        row[i] = fixup_func(row[i])