Գրեք սա: Class S anomalies from M-theory inflow