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.
1 parent 5296361 commit 6764b4fCopy full SHA for 6764b4f
bbox_visualizer/core/_utils.py
@@ -52,7 +52,7 @@ def _validate_bbox(bbox: list[int]) -> None:
52
ValueError: If bbox is empty, has wrong length, or has invalid coordinates
53
54
"""
55
- if not bbox:
+ if bbox is None or (hasattr(bbox, '__len__') and len(bbox) == 0):
56
raise ValueError("Bounding box cannot be empty")
57
if len(bbox) != 4:
58
raise ValueError(
0 commit comments