Heat oil in a wok or frypan over medium to high heat. Add the tofu and cook, stirring occasionally for 5 minutes or until golden on all sides.
Add curry paste to the pan and stirfry for one minute. Then add the coconut milk, pumpkin and beans and bring to a simmer. Cook uncovered for 25 minutes, or until the pumpkin starts to break down.
Add spinach, soy sauce and sugar and cook for a further 1 minute.
Serve with freshly chopped coriander.