syft.core.node.common.util

Functions

listify(x)

turns x into a list.

syft.core.node.common.util.listify(x)[source]

turns x into a list. If x is a list or tuple, return as list. if x is not a list: return [x] if x is None: return []

Parameters

x (Any) – some object

Returns

x, as a list

Return type

List[Any]