Skip to content
Snippets Groups Projects

Call PartialUpdateElement but correct payload

Merged Yoann Schneider requested to merge call-update-element into master
All threads resolved!
2 files
+ 21
15
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -316,8 +316,9 @@ class ElementMixin(object):
isinstance(coord, (int, float)) for point in polygon for coord in point
), "polygon points should be lists of two numbers"
if (confidence := kwargs.get("confidence")) is not None:
assert (
if "confidence" in kwargs:
confidence = kwargs["confidence"]
assert confidence is None or (
isinstance(confidence, float) and 0 <= confidence <= 1
), "confidence should be None or a float in [0..1] range"
Loading