We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 379c495 commit f84fcd2Copy full SHA for f84fcd2
1 file changed
packages/syft/src/syft/service/policy/policy.py
@@ -276,7 +276,13 @@ def transform_kwarg(
276
return Ok(self.val)
277
278
def _get_dict_for_user_code_repr(self) -> dict[str, Any]:
279
- return {"val": str(self.val), "type": self.klass.__qualname__}
+ 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
+ }
286
287
288
@serializable()
0 commit comments