David Hewitt

Results 1495 comments of David Hewitt

As per the versioning policy https://docs.pydantic.dev/latest/version-policy/#pydantic-v2 I think adding additional error detail is permitted without considering it breaking. I'd be quite up for having this. Consider e.g. a three-member union:...

I think we need to convince @samuelcolvin that this is fine to merge, and then we can ship it :)

For what it's worth the PyO3 issue was indeed a refcounting op hidden behind a smart pointer (credit @colesbury for identifying that at the time). https://github.com/PyO3/pyo3/pull/4479

Although I cannot remember the exact use-case, I remember wanting something like this to name an optional trailing comma so that I could forward it on to another macro as...