fix(plan): add return type hint and handle non-list data input

7 jobs for main
in 0 seconds and was queued for 1 minute and 17 seconds