Imagine one has two classes derived from Enum, e.g.
class Color(Enum):
blue = 'blue'
red = 'red'
class Properties(Enum):
height = 'h'
weight = 'w'
colors = Color
What is the best way to (probably recursively) iterate over all Enum-labels of a nested Enum like Properties, including the ones of Enum-members like Properties.colors in the example above (i.e. including Color.blue and Color.red)? Checking for the type of the value?