from enum import IntEnum class gain_mode(IntEnum): gain = 1 output_power = 2