Skip to content

Commit f84fcd2

Browse files
committed
update repr for Constant
1 parent 379c495 commit f84fcd2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • packages/syft/src/syft/service/policy

packages/syft/src/syft/service/policy/policy.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,13 @@ def transform_kwarg(
276276
return Ok(self.val)
277277

278278
def _get_dict_for_user_code_repr(self) -> dict[str, Any]:
279-
return {"val": str(self.val), "type": self.klass.__qualname__}
279+
return self._coll_repr_()
280+
281+
def _coll_repr_(self) -> dict[str, Any]:
282+
return {
283+
"klass": self.klass.__qualname__,
284+
"val": str(self.val),
285+
}
280286

281287

282288
@serializable()

0 commit comments

Comments
 (0)