We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d278ac5 + 98defa8 commit cdf38d2Copy full SHA for cdf38d2
nucleus/__init__.py
@@ -50,7 +50,7 @@
50
geometry | dict | Representation of the bounding box in the Box2DGeometry format.\n
51
metadata | dict | An arbitrary metadata blob for the annotation.\n
52
"""
53
-__version__ = "0.0.1"
+__version__ = "0.1.0"
54
55
import json
56
import logging
nucleus/annotation.py
@@ -26,7 +26,7 @@
26
27
class Annotation:
28
def _check_ids(self):
29
- if not bool(self.reference_id) and not bool(self.item_id):
+ if bool(self.reference_id) == bool(self.item_id):
30
raise Exception(
31
"You must specify either a reference_id or an item_id for an annotation."
32
)
0 commit comments