File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1919from collections .abc import Sequence
2020from functools import singledispatch
2121from types import EllipsisType
22- from typing import Any , TypeAlias , cast
22+ from typing import TYPE_CHECKING , Any , TypeAlias , cast
2323
2424import numpy as np
2525
3333from pytensor .tensor .type_other import NoneTypeT
3434from pytensor .tensor .variable import TensorVariable
3535
36- # from pymc.model import modelcontext
3736from pymc .pytensorf import convert_observed_data
3837
38+ if TYPE_CHECKING :
39+ from pymc .model import Model
40+
41+
3942__all__ = [
4043 "change_dist_size" ,
4144 "rv_size_is_none" ,
@@ -164,7 +167,7 @@ def convert_size(size: Size) -> StrongSize | None:
164167 )
165168
166169
167- def shape_from_dims (dims : StrongDims , model : Model ) -> StrongShape :
170+ def shape_from_dims (dims : StrongDims , model : " Model" ) -> StrongShape :
168171 """Determine shape from a `dims` tuple.
169172
170173 Parameters
You can’t perform that action at this time.
0 commit comments