Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
`use_args` does not use the parser's locations #44
If I specify custom locations in a parser:
parser = FlaskParser(locations=('data', 'query')) @parser.location_handler('data') def parse_data(req, name, arg): ...
Then decorate a method with
class WidgetList(MethodView): @parser.use_args(widget_args) def post(self, args): ...
Those custom locations are ignored and the default locations are used:
This requires me to override locations in every
# v @parser.use_args(my_widget_args, locations=parser.locations)
Was this intentional? To me, it seems like line 445 in
locations = locations or self.locations