chat1
def find_enum_by_prefix(input_string, enum_class):
for member in enum_class:
if input_string.startswith(member.value):
return member
return None
def find_enum_by_prefix(input_string, enum_class):
for member in enum_class:
if input_string.startswith(member.value):
return member
return None