Skip to content

Commit

Permalink
Fix list diff comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed Aug 26, 2024
1 parent c9ca492 commit 9b0d2b9
Show file tree
Hide file tree
Showing 5 changed files with 263 additions and 259 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "rich-tables"
version = "0.6.0"
version = "0.6.1"
description = "Ready-made rich tables for various purposes"
authors = ["Šarūnas Nejus <[email protected]>"]
readme = "README.md"
Expand Down
6 changes: 5 additions & 1 deletion rich_tables/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,11 @@ def sql_syntax(sql_string: str) -> Syntax:


def diff_serialize(value: Any) -> str:
return {None: "null", "": '""'}.get(value, str(value))
if value is None:
return "null"
if value == "":
return '""'
return str(value)


@multimethod
Expand Down
Loading

0 comments on commit 9b0d2b9

Please sign in to comment.