-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix usage of PlainSerializer
with builtin types
#9450
Conversation
@@ -293,7 +293,7 @@ def get_function_type_hints( | |||
except AttributeError: | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sydney-runkle, I believe you meant to use the function (well in this case the type) here in your previous fix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
CodSpeed Performance ReportMerging #9450 will not alter performanceComparing Summary
|
Please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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