When used @gen.coroutine or similar decorator on handler method
@gen.coroutine
def get(self, item_id):
inspect.getargspec function (tornado plugin) return decorated arguments, and then we got empty list
args = inspect.getargspec(method).args[1:]
And error like this, when used function spec.add_path
raise APISpecError('Path template is not specified')
It fixed If use more common function signature from inspect module,
For example
args = list(inspect.signature(method).parameters.keys())[1:]
When used @gen.coroutine or similar decorator on handler method
inspect.getargspec function (tornado plugin) return decorated arguments, and then we got empty list
And error like this, when used function spec.add_path
It fixed If use more common function signature from inspect module,
For example