Skip to content

Commit ddcebeb

Browse files
committed
remove optional mpl import
1 parent 9147b34 commit ddcebeb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pymc3/plots/posteriorplot.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@
1818

1919
from pymc3.backends.base import MultiTrace
2020

21+
import matplotlib.pyplot as plt
22+
2123
if TYPE_CHECKING: # pragma: nocover
2224
from arviz.data.inference_data import InferenceData
2325

24-
try:
25-
import matplotlib.pyplot as plt
26-
except ImportError: # pragma: nocover (mpl is optional)
27-
pass
28-
2926

3027
def plot_posterior_predictive_glm(
3128
trace: Union["InferenceData", MultiTrace],

0 commit comments

Comments
 (0)