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
def decorator(func):
@wraps(func)
def wrapper(*f_args, **f_kwargs):
return func(*f_args, **f_kwargs)
# Add parameter to parameters list in doc info in function object
# The deepcopy avoids modifying the wrapped function doc
wrapper._apidoc = deepcopy(getattr(wrapper, '_apidoc', {}))
wrapper._apidoc.setdefault('parameters', []).append(parameters)
# Call use_args (from webargs) to inject params in function
return self.ARGUMENTS_PARSER.use_args(
> schema, locations=[location], **kwargs)(wrapper)
E TypeError: use_args() got an unexpected keyword argument 'locations'
../../../.virtualenvs/jAjXlZQO/lib/python3.7/site-packages/flask_smorest/arguments.py:76: TypeError
The text was updated successfully, but these errors were encountered:
You're using a beta webargs version. As soon as webargs 6.0.0 is out, I'll release a flask-smorest version including the fix and drop webargs < 6.0.0 support.
The text was updated successfully, but these errors were encountered: