You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PlainSerializer does not accept the built-in object str as its func argument. I previously reported this as #8967, and it was reported fixed in #9031 / 5c8afe6. However, the newly added test uses float instead of str as the argument to PlainSerializer, but float does not trigger this bug.
I have included a stack trace of the thrown exception below:
Initial Checks
Description
PlainSerializer
does not accept the built-in objectstr
as itsfunc
argument. I previously reported this as #8967, and it was reported fixed in #9031 / 5c8afe6. However, the newly added test usesfloat
instead ofstr
as the argument toPlainSerializer
, butfloat
does not trigger this bug.I have included a stack trace of the thrown exception below:
Stack trace
Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: