Cook the pumpkin with a little salt. When tender, remove and place in a bowl.
Add salt, pepper, and butter and mash the mixture with a fork until it has a smooth, mash-like texture.
Add the grated Parmesan cheese, egg, and flour. Work the mixture in well so that everything is completely combined.
Make small balls and place a piece of cheese and a piece of bacon in the center.
Flatten the ball a little and then place it in the frying pan, over medium heat until golden brown on the outside.