Preheat oven to 200C/gas 6 and line two baking trays with foil.
Cut the pumpkin in half, scoop out and discard the seeds, then cut it into crescents around 2cm at the widest part.
Transfer to a big bowl, drizzle with oil, and sprinkle with the garam masala, and 1 teaspoon of salt and ½ teaspoon of black pepper. Toss to coat evenly, then arrange in a single layer. Roast for 30 mins, or until soft and tender.
Meanwhile, put 2 tbsp of oil into a large lidded frying pan over a medium heat and, when hot, add the mustard seeds. When they pop, add the slit green chillies and the onion.
Cook for 12 mins, or until the onion is soft and golden, then add the garlic. Cook for another couple of minutes, then add the drained beans and stir to mix together.
Add the tomatoes and cook for a few more minutes until soft and jammy around the edges.
Next, add the turmeric, ⅓ tsp of black pepper, ½ tsp of salt and the coconut milk. Tip the roasted pumpkin into the pan and stir to mix. Cover with the lid and leave to heat through for 5 mins.
Check for salt and chilli, adjusting if you wish, then transfer to a serving dish.
Optional: finish off the dish with a quick curry leaf tarka: put 2 tbsp of oil into a small frying pan over a medium-high heat. When hot, throw in the curry leaves and let them crackle and turn translucent in the oil. Pour over the pumpkin, then serve.