If I have a python function with the following color arg defined:
def search(
self,
color: ColorEnum = None
) -> Result:
And the ColorEnum looks like this:
class ColorEnum(str, Enum):
Red = "red",
Green = "green",
Blue = "blue"
Why does Python not throw an error when I do the following:
search(color="black")
Is the Enum value merely used at compile time? It seems not to have any effect at run time and the function will work