Dynamically fill an Enum with a list
In this case it sounds like you want to use a dynamic enum, rather then passing a list, pass items as a function (which returns a list), then you can change it dynamically.
See: https://docs.blender.org/api/current/bpy.props.html#bpy.props.EnumProperty