Hello! I have a py-cord code making a slash command, and then allowing only some inputs using an Enum object. Py-cord then, after the command has been ran, returns the enum object, along with the respective class variable. So if i chose names, it would return Properties.name. But as you can see in the console output(which is the 3 print statements accordingly), the first 2 lines show the enum object being identical, but when i compare them, it doesnt equal to true. I have been trying to solve this for quite some time now and i cant find a solution.
Here is the code in text form:
@bot.slash_command(guild_ids=supportedGuilds, description="Change a project's properties.")
async def change_project_properties(ctx, property: Option(Enum('Properties', ['name', 'finalkd', 'startdate', 'leader']), "Property", required=True)): #type: ignore
current = Properties.name
if property == current:
await ctx.response.send_message("Success!")
print("a")
print(f"{property}: {type(property)}")
print(f"{current}: {type(current)}")
print(f"{property == current}")```