Skip to content

Commit 3092dea

Browse files
committed
Make _check_and_modify_bbox private as it's not a user facing method. Change docs to reflect it
1 parent 756b676 commit 3092dea

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

bbox_visualizer/bbox_visualizer.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
font = cv2.FONT_HERSHEY_SIMPLEX
77

88

9-
def check_and_modify_bbox(
9+
def _check_and_modify_bbox(
1010
bbox: List[int], img_size: Tuple[int, int, int], margin: int = 0
1111
) -> List[int]:
12-
"""Checks and adjusts bounding box coordinates to fit within image boundaries.
12+
"""Internal function to check and adjust bounding box coordinates.
13+
14+
.. private::
1315
1416
Trimming rules:
1517
- xmin/ymin: Set to margin if negative
@@ -50,7 +52,7 @@ def draw_rectangle(
5052
Returns:
5153
Image with drawn rectangle
5254
"""
53-
bbox = check_and_modify_bbox(bbox, img.shape)
55+
bbox = _check_and_modify_bbox(bbox, img.shape)
5456

5557
output = img.copy()
5658
if not is_opaque:

docs/conf.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,20 @@
173173
'members': True,
174174
'member-order': 'bysource',
175175
'special-members': '__init__',
176-
'undoc-members': True,
177-
'exclude-members': '__weakref__'
176+
'undoc-members': False,
177+
'exclude-members': '__weakref__',
178+
'private-members': False,
179+
'show-inheritance': True
178180
}
179181

182+
# Don't show type hints in the signature - they're already in the parameter list
183+
autodoc_typehints = 'description'
184+
185+
# Don't show the module name in the function/class signature
186+
add_module_names = False
187+
188+
# Sort members by source order
189+
autodoc_member_order = 'bysource'
190+
180191

181192

0 commit comments

Comments
 (0)