Skip to content

Commit

Permalink
Automatic backup 2024-03-13
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed Mar 14, 2024
1 parent c21e972 commit 112dd58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rich_tables/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _list(data: List) -> RenderableType:

@flexitable.register
@debug
def _str_list(data: Tuple[str, ...]) -> RenderableType:
def _str_list(data: Tuple[Any, ...]) -> RenderableType:
return format_with_color(data)


Expand Down
2 changes: 1 addition & 1 deletion rich_tables/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def format_with_color(items: Union[str, Iterable[str]]) -> str:
if isinstance(items, str):
items = sorted(SPLIT_PAT.split(items))

return " ".join(map(_format_with_color, items))
return " ".join((_format_with_color(str(x)) for x in items))


def format_with_color_on_black(items: Union[str, Iterable[str]]) -> str:
Expand Down

0 comments on commit 112dd58

Please sign in to comment.