Skip to content

Commit 3fe8210

Browse files
committed
use Python3.7+ type hints
1 parent 9cf211a commit 3fe8210

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pymc3/plots/posteriorplot.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,21 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
from __future__ import annotations
16+
1517
from typing import TYPE_CHECKING, Any, Callable, Optional, Union
1618

1719
import matplotlib.pyplot as plt
1820
import numpy as np
1921

2022
from pymc3.backends.base import MultiTrace
2123

22-
if TYPE_CHECKING: # pragma: nocover
24+
if TYPE_CHECKING:
2325
from arviz.data.inference_data import InferenceData
2426

2527

2628
def plot_posterior_predictive_glm(
27-
trace: Union["InferenceData", MultiTrace],
29+
trace: Union[InferenceData, MultiTrace],
2830
eval: Optional[np.ndarray] = None,
2931
lm: Optional[Callable] = None,
3032
samples: int = 30,

0 commit comments

Comments
 (0)