chore: remove redundant callable check in to_serializable

This commit is contained in:
Greyson LaLonde
2026-03-31 15:49:37 +08:00
parent 1faee0c684
commit 19d1088bab

View File

@@ -116,8 +116,6 @@ def to_serializable(
}
except Exception:
return repr(obj)
if callable(obj):
return repr(obj)
return repr(obj)