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
If a validator handler raise a TypeError hug catch it believing (here) that’s is an expected error unexpected keyword argument "context"
A solution is to use replace initialize_handler code with something like that:
importinspectdefinitialize_handler(handler, value, context):
if"context"ininspect.signature(handler).parameters: # It's better to ask for permission than for forgivenessreturnhandler(value, context=context)
else:
returnhandler(value)
The text was updated successfully, but these errors were encountered:
If a validator handler raise a
TypeError
hug catch it believing (here) that’s is an expected errorunexpected keyword argument "context"
A solution is to use replace
initialize_handler
code with something like that:The text was updated successfully, but these errors were encountered: