David McKeone

Results 5 comments of David McKeone

Provide/Inject totally works in the mean time, thanks for that suggestion. I also like the idea of the abstraction over common field validations. I think this may still have value...

I've implemented a proof of concept here: https://gist.github.com/dmckeone/d1fbc9910aee302804b444d6d20a8df9 I also added a flourish that allows a placeholder `SourceType` to simplify the Patch case: ```python PersonUpdate = msgspec.derivestruct( "PersonUpdate", Person, [...

Just curious, so I thought I'd check in again. Is the `derive_struct` here interesting to be part of the main library, or is that out of scope for what you...

I just wanted to chime in to ask, is the value here that the magic methods -- `__msgspec_decode__` and `__msgspec_encode__` -- are common across all projects that use `msgspec`? Otherwise...

If it helps at all, there is an open issue in sanic-ext for this: https://github.com/sanic-org/sanic-ext/issues/230 It includes example code for Sanic extension that tried to serve as a baseline, derived...