If you don't have any leftover roasted pumpkin, cut a pumpkin into small cubes, drop the cubes into a gratin dish, drizzle with olive oil and sprinkle with thyme. Bake at 180°C for about 30 minutes until the flesh is melted.
Dice the cheese and coarsely crush the walnut kernels.
In a bowl, beat the eggs, add the milk and oil and mix again with a whisk.
Gradually add the flour and yeast while whisking.
Add the spices and mix again, then add the diced pumpkin, the comté cheese and the walnut kernels.
Pour the preparation into a cake tin and sprinkle the pumpkin and sesame seeds on top.
Bake at 180°C for about 30 minutes. Check with the tip of a knife and let cool on a wire rack.