From 4dcb1e070783613c50c6d7d6c36e41d3d7ea3a4a Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Wed, 31 Oct 2018 16:51:19 -0500 Subject: [PATCH] hub: document edit_tag argument types The editTag2 RPC expects arguments to be certain types. For example, "arches" should be a single string of space-separated values, not a Python list. Document the types in the docstring for the edit_tag method. --- hub/kojihub.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hub/kojihub.py b/hub/kojihub.py index 54aa1b8e..d9ff32fb 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -3096,13 +3096,15 @@ def edit_tag(tagInfo, **kwargs): tagInfo specifies the tag to edit fields changes are provided as keyword arguments: - name: rename the tag - arches: change the arch list - locked: lock or unlock the tag + name: rename the tag (str) + arches: change the arch list (str) + locked: lock or unlock the tag (bool) perm: change the permission requirement maven_support: whether Maven repos should be generated for the tag + (bool) maven_include_all: include every build in this tag (including multiple versions of the same package) in the Maven repo + (bool) extra: add or update extra tag parameters (dictionary) remove_extra: remove extra tag parameters (list) """