Skip to content

Commit

Permalink
[str_and_dict] wrap matplotlib docstring import in try/except
Browse files Browse the repository at this point in the history
Sticking to this until matplotlib fully deprecates, since
they use this internally
  • Loading branch information
gph82 committed Oct 25, 2023
1 parent 2bbef48 commit 1a64e50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mdciao/utils/str_and_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
from natsort import natsorted as _natsorted
from inspect import signature as _signature
import docstring_parser as _dsp
from matplotlib import docstring as _mpldocstring
try:
from matplotlib import docstring as _mpldocstring
except ImportError:
from matplotlib import _docstring as _mpldocstring
from textwrap import wrap as _twrap


Expand Down

0 comments on commit 1a64e50

Please sign in to comment.