For the gnocchi, coarsely grate the peeled pumpkin flesh and sauté in the butter. Drain the pumpkin on a colander and allow to cool. Add the ricotta, eggs, flour, cheese and spices and stir everything with a wooden spoon. Put the dough in the fridge for 30 minutes.
The dough should be soft but no longer sticky, otherwise add a little more flour.
With a floured fork or two wet tablespoons, stand up about 25 walnut-sized gnocchi in portions and immediately place in boiling salted water (do not boil). Let it steep for about 5 minutes.
When the gnocchi are floating on the surface, remove them with a skimmer.
For the basil butter, melt the butter in a pan and add the basil leaves, plucked into pieces.
Pan the drained gnocchi in the butter and then serve hot.