Project

General

Profile

Actions

Bug #5907

closed

[SDKs] PySDK's internal decorators lose method metadata

Added by Brett Smith almost 9 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assigned To:
-
Category:
SDKs
Target version:
-
Story points:
0.5
Release:
Release relationship:
Auto

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.

Actions #1

Updated by Ward Vandewege over 2 years ago

  • Target version deleted (Arvados Future Sprints)
Actions #2

Updated by Peter Amstutz about 1 year ago

  • Release set to 60
Actions #3

Updated by Brett Smith about 1 year ago

  • Status changed from New to Resolved

I'm not sure exactly when but this got resolved at some point, pydoc produces the desired output now.

Actions

Also available in: Atom PDF