Fix usage of PlainSerializer with builtin types#9450
Fix usage of PlainSerializer with builtin types#9450sydney-runkle merged 3 commits intopydantic:mainfrom
PlainSerializer with builtin types#9450Conversation
| type_hints = get_type_hints(function) | ||
| if isinstance(function, type): | ||
| type_hints.setdefault('return', type) | ||
| type_hints.setdefault('return', function) |
There was a problem hiding this comment.
@sydney-runkle, I believe you meant to use the function (well in this case the type) here in your previous fix?
CodSpeed Performance ReportMerging #9450 will not alter performanceComparing Summary
|
|
Please review |
sydney-runkle
left a comment
There was a problem hiding this comment.
Wonderful, thanks!
Head branch was pushed to by a user without write access
|
@Viicos, looks like some tests are failing? |
4062277 to
01a7c5e
Compare
|
@sydney-runkle On PyPy,
As the |
Change Summary
Related issue number
Fixes #9447
Checklist
Selected Reviewer: @alexmojaki