I’ve been doing something similar, 18:6 with eating window 2-8pm. I usually work out in the mornings twice a week from 8-9am. Just a cup of black coffee and lots of water beforehand. No issues!
Whatever is sustainable for you is a good IF habit.
I almost always do my cardio fasted. With a 9:30 class, I’d assume you finish with just a little time before you’re able to eat? So I think you’re fine. Everyone is different but eating before makes me feel sluggish.