Skip to content

Commit

Permalink
custom object serialization (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
StanChan03 authored Jan 19, 2025
1 parent 17b8d63 commit fe6109f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lotus/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def serialize(value: Any) -> Any:
lotus.logger.warning(f"Unsupported type {type(value)} for serialization. Converting to string.")
return str(value)

serialize_self = serialize(self)
serialize_self = serialize(self._obj)
serialized_kwargs = {key: serialize(value) for key, value in kwargs.items()}
serialized_args = [serialize(arg) for arg in args]
cache_key = hashlib.sha256(
Expand Down

0 comments on commit fe6109f

Please sign in to comment.