pub const ENUM_MAX_TYPE: u8 = 21;
Use associated constants instead. This will no longer be generated in 2021.