Fix linting

This commit is contained in:
yangdx
2025-04-04 04:46:40 +08:00
parent 11d7ef4a87
commit c3934ccccb
3 changed files with 9 additions and 8 deletions

View File

@@ -1103,7 +1103,8 @@ class PGGraphStorage(BaseGraphStorage):
try:
d[k] = (
json.loads(v)
if isinstance(v, str) and (v.startswith("{") or v.startswith("["))
if isinstance(v, str)
and (v.startswith("{") or v.startswith("["))
else v
)
except json.JSONDecodeError: