Type annotations for Enum attribute June 7, 2023 by Tarik Type hinting the Color class should work: def get_color_return_something(some_color: Color): print(some_color.value)