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
Today the errorhandler decorator does not have consistency between the type of error in its parameter and the parameter of the function it is wrapping although those should be the same.
The following code should be properly typed:
@app.errorhandler(auth.ExpiredTokenException)defexpired_token(error: auth.ExpiredTokenException) ->Tuple[str, int]:
"""Handle the 498 error."""returnerror.descriptionori18n.flask_translate("Expired token"), 498
Today the
errorhandler
decorator does not have consistency between the type of error in its parameter and the parameter of the function it is wrapping although those should be the same.The following code should be properly typed:
the current version enforces it to be typed as
The text was updated successfully, but these errors were encountered: