Skip to content

Commit

Permalink
fix: suppress wrapt warning messages (#116)
Browse files Browse the repository at this point in the history
Co-authored-by: JooYoung Seo <[email protected]>
  • Loading branch information
dakshpokar and jooyoungseo authored Oct 9, 2024
1 parent 164d6fa commit 1283be5
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 52 deletions.
31 changes: 6 additions & 25 deletions example/bar/example_bar_plot.ipynb

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions example/box/example_box_plot.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions example/count/example_count_plot.ipynb

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions example/heatmap/example_heatmap_plot.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions example/histogram/example_histogram_plot.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions example/line/example_line_plot.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions example/scatter/example_scatter_plot.ipynb

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions maidr/patch/common.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
from __future__ import annotations

import warnings
from typing import Any

from maidr.core.context_manager import ContextManager
from maidr.core.figure_manager import FigureManager


def common(plot_type, wrapped, _, args, kwargs) -> Any:
# Suppress warnings not to confuse screen-reader users
warnings.filterwarnings("ignore")

# Don't proceed if the call is made internally by the patched function.
if ContextManager.is_internal_context():
return wrapped(*args, **kwargs)
Expand Down

0 comments on commit 1283be5

Please sign in to comment.