Add a tablespoon of olive oil to a pan with high sides. Add the onion and cook until softened, about 5 minutes. Then, add the garlic and cook for 1 minute. Next, add the tomato paste and stir. Cook for about 3 minutes, and then add the vodka if using. Stir, and let cook until it no longer smells of alcohol, about 5 minutes.
Add the pumpkin puree, salt, red pepper flakes, and pumpkin spice. Stir to combine, and then let cook on low for about 10 minutes.
Slowly pour in the heavy cream. It'll be very white at first, just keep stirring it until everything combines. Bring it to a gentle boil, then lower to a simmer, cover, and let cook for about 15 minutes. In the meantime, bring a pot of water for the gnocchi to a boil.
At the end of cooking the sauce, add about ¼ cup of grated Locatelli or parm and stir it in. Taste for seasoning and add as needed.
The gnocchi will only take about 2 minutes. Once they float, use a slotted spoon to add them directly to the sauce. If the sauce is too thick, add some pasta water to thin it out to your preferred consistency. Serve with a nice sprinkle of more grated cheese, red pepper flakes, and chopped fresh parsley.