disallow subclassing of an enum class
add IntEnum to the api file