One moderately practical method to reduce or remove static shocks while petting a feline would be to have a petting mat. It should be a fabric panel or similar substance with metallic threads.

The above image from the linked Amazon page is a 20 cm square of fabric, 30% silver threads. Somewhat impractical to this concept is that at least one set of toe-beans must be in contact with the fabric while the critter is being petted.
Additionally, the petter should have one hand on the fabric while the pettee is enjoying the attention.
The concept behind this practice is that the activity of petting the cat creates a static build up in the human, an electrical potential difference between the two bodies. It does not discharge during the activity due to the dry air and insulating capacity of the feline fur.
The nose is not protected by this fur. Ostensibly, the toe-beans are not, providing a conductive path from the charging human to the feline during the activity, preventing build up and sudden sparking discharge.
Less practical would be to use an anti-static fabric spray spritzed in the air above the cat-petting volume, just prior to the activity. As these products are often quite fragrant, either party may object to the residual mist.
I've been overlooking the obvious all this time. Keep one finger on the cat's nose while petting. Okay, so much for practical. One finger on a toe?