Type annotations for Enum attribute

Type hinting the Color class should work:

def get_color_return_something(some_color: Color):
    print(some_color.value)

Leave a Comment