Kitware / tangelo

A simple, quick, powerful web framework
http:/tangelohub.org/tangelo/
Apache License 2.0
185 stars 35 forks source link

@tangelo.types() will not allow for default arguments #476

Open waxlamp opened 9 years ago

waxlamp commented 9 years ago

For example, in the following function

@tangelo.types(foo=json.loads)
def run(foo=False):
    pass

run() cannot be invoked with no arguments. The following error arises from the execution of the types() decorator:

{"error": "'foo' was registered for type conversion but did not appear in the arguments list"}