Skip to content

Commit

Permalink
Automatic backup 2024-02-22
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed Feb 23, 2024
1 parent 3cb621d commit 93c25fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions rich_tables/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ def _get_val(value: Any, field: str) -> Any:
if value is None:
value = "None"

if field not in FIELDS_MAP and field.endswith("_group") and isinstance(value, list):
return format_with_color(value)

return FIELDS_MAP[field](value)


Expand Down
3 changes: 1 addition & 2 deletions rich_tables/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
from datetime import datetime
from functools import partial, wraps
from typing import Any, Callable, Dict, Iterable, List, TypeVar, Union
from typing import Any, Callable, Dict, List, TypeVar, Union

from multimethod import multidispatch
from rich import box
Expand All @@ -26,7 +26,6 @@
new_table,
new_tree,
predictably_random_color,
simple_panel,
wrap,
)

Expand Down

0 comments on commit 93c25fe

Please sign in to comment.