[3.13] gh-125316: Fix using partial() as Enum member (GH-125361) A FutureWarning with suggestion to use enum.member() is now emitted when the partial instance is used as an enum member.