Skip to content

Commit

Permalink
Import arviz only for type checking
Browse files Browse the repository at this point in the history
Related to #1354
  • Loading branch information
dweindl committed Apr 3, 2024
1 parent e0bec86 commit 387c116
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pypesto/sample/pymc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
from __future__ import annotations

import logging
from typing import Union
from typing import TYPE_CHECKING, Union

import arviz as az
import numpy as np
import pymc
import pytensor.tensor as pt
Expand All @@ -16,6 +15,9 @@
from ..result import McmcPtResult
from .sampler import Sampler, SamplerImportError

if TYPE_CHECKING:
import arviz as az

logger = logging.getLogger(__name__)

# implementation based on:
Expand Down

0 comments on commit 387c116

Please sign in to comment.