Skip to content

Commit d2e7a04

Browse files
committed
style: apply ruff format to hermes adapters scripts
1 parent 5e6b68c commit d2e7a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/memos-local-plugin/adapters/hermes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _is_trivial(text: str) -> bool:
7878
if keys <= {"ok", "success", "status", "result", "error", "message"}:
7979
vals = list(obj.values())
8080
if all(
81-
isinstance(v, (bool, type(None))) or (isinstance(v, str) and len(v) < 20)
81+
isinstance(v, bool | type(None)) or (isinstance(v, str) and len(v) < 20)
8282
for v in vals
8383
):
8484
return True

0 commit comments

Comments
 (0)