Skip to content

Commit bbb27e6

Browse files
committed
Add method and context manager to suppress warnings
1 parent 4a100d7 commit bbb27e6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

bbox_visualizer/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
suppress_warnings,
1414
warnings_suppressed,
1515
)
16+
from .core._utils import suppress_warnings, warnings_suppressed
1617

1718
__all__ = [
1819
"__version__",

bbox_visualizer/core/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
)
99
from .labels import add_label, add_multiple_labels
1010
from .rectangle import draw_multiple_rectangles, draw_rectangle
11+
from ._utils import suppress_warnings, warnings_suppressed
1112

1213
__all__ = [
1314
"add_T_label",
@@ -18,4 +19,6 @@
1819
"draw_multiple_flags_with_labels",
1920
"draw_multiple_rectangles",
2021
"draw_rectangle",
22+
"suppress_warnings",
23+
"warnings_suppressed",
2124
]

0 commit comments

Comments
 (0)