CloudpickleWrapper class
Wrapper that uses cloudpickle to pickle and unpickle the result.
Special methods
- def __call__(self, *args, **kwargs)
- Calls the function self.fn with no arguments.
- def __format__(self, format_spec, /)
- Default object formatter.
- def __getstate__(self)
- Get the state using cloudpickle.dumps(self.fn).
- def __init__(self, fn: typing.Callable)
- Cloudpickle wrapper for a function.
- def __setstate__(self, ob)
- Sets the state with obs.
Method documentation
def habitat. utils. pickle5_multiprocessing. CloudpickleWrapper. __format__(self, format_spec, /)
Default object formatter.
Return str(self) if format_spec is empty. Raise TypeError otherwise.