Skip to content

Commit

Permalink
Merge pull request PMEAL#2850 from PMEAL/fixing_docstring_import
Browse files Browse the repository at this point in the history
# Fixed use of mpl's Substitution docstring helper to be version resistant #maint
  • Loading branch information
jgostick authored Oct 27, 2023
2 parents d8efaa2 + 00551ab commit c66ed2f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion openpnm/models/_doctxt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
from matplotlib._docstring import Substitution
try:
from matplotlib._docstring import Substitution
except ModuleNotFoundError:
from matplotlib.docstring import Substitution



__all__ = [
Expand Down
5 changes: 4 additions & 1 deletion openpnm/models/geometry/_geodocs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from matplotlib._docstring import Substitution
try:
from matplotlib._docstring import Substitution
except ModuleNotFoundError:
from matplotlib.docstring import Substitution


__all__ = [
Expand Down
6 changes: 5 additions & 1 deletion openpnm/models/phase/_phasedocs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
from matplotlib._docstring import Substitution
try:
from matplotlib._docstring import Substitution
except ModuleNotFoundError:
from matplotlib.docstring import Substitution


__all__ = [
'_phasedocs',
Expand Down

0 comments on commit c66ed2f

Please sign in to comment.