Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lgluszek committed Dec 18, 2024
1 parent dde802e commit b48940f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ def _create_relationship_annotations(
f"Unable to create relationship with non ObjectAnnotation source: {type(source)}"
)

# Check if target type is valid
if not isinstance(target, ObjectAnnotation):
raise TypeError(
f"Unable to create relationship with non ObjectAnnotation target: {type(target)}"
Expand Down

0 comments on commit b48940f

Please sign in to comment.