_coerce_to_list#

pytorch_forecasting.data.timeseries._coerce_to_list(obj)[source]#

Coerce object to list.

None is coerced to empty list, otherwise list constructor is used.