Skip to content
Snippets Groups Projects
Commit 1e08518e authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

document helper

parent e23c86a5
No related branches found
No related tags found
No related merge requests found
......@@ -283,10 +283,17 @@ class ElementMixin(object):
Updates an element through the API.
:param element: The element to update.
:param type: Optional new slug type of the element.
:param name: Optional new name of the element.
:param polygon: Optional new polygon of the element.
:param confidence: Optional new confidence score, between 0.0 and 1.0.
:param type: Slug type of the element.
:param name: Name of the element.
:param **kwargs:
* *polygon* (``list``): Optional polygon for this element
* *confidence* (``float``): Optional confidence score of this element
* *rotation_angle* (``int``): Optional rotation angle of this element
* *mirrored* (``bool``): Optional mirror status of this element
* *image* (``UUID``): Optional ID of the image of this element
:returns: A dict from the ``UpdateElement`` API endpoint,
"""
assert element and isinstance(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment