Bug #5907

[SDKs] PySDK's internal decorators lose method metadata

Added by Brett Smith over 4 years ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
SDKs
Target version:
Start date:
05/05/2015
Due date:
% Done:

0%

Estimated time:
Story points:
0.5

Description

Try, e.g., pydoc arvados.collection.Collection.copy. The arguments aren't named on the method signature, even though they are named in the source. That's because one of the decorators (at the time of this writing, must_be_writable or synchronized) is overwriting the signature with its own, generic one. Decorating the decorator with functools.wraps would make for nicer documentation.

Also available in: Atom PDF