pydantic-core icon indicating copy to clipboard operation
pydantic-core copied to clipboard

Fix str subclass validation for enums

Open sydney-runkle opened this issue 1 year ago • 2 comments

Fix https://github.com/pydantic/pydantic/issues/9265

sydney-runkle avatar Apr 18 '24 14:04 sydney-runkle

CodSpeed Performance Report

Merging #1273 will not alter performance

Comparing enum_fixes (cad59ca) with main (b777774)

Summary

✅ 155 untouched benchmarks

codspeed-hq[bot] avatar Apr 18 '24 14:04 codspeed-hq[bot]

Alright, so we want to move forward with this by modifying how we validate enums (moving away from the literal validation logic). Definitely something we still want to fix, but going to wait on 2.7.2 for this one 👍

sydney-runkle avatar Apr 22 '24 13:04 sydney-runkle