Skip to content

Commit 630bbaf

Browse files
committed
Compatible normalize_axis_tuple import
1 parent 4814705 commit 630bbaf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pymc/distributions/transforms.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@
1818
import numpy as np
1919
import pytensor.tensor as pt
2020

21-
22-
# ignore mypy error because it somehow considers that
23-
# "numpy.core.numeric has no attribute normalize_axis_tuple"
24-
from numpy.core.numeric import normalize_axis_tuple # type: ignore[attr-defined]
2521
from pytensor.graph import Op
22+
from pytensor.npy_2_compat import normalize_axis_tuple
2623
from pytensor.tensor import TensorVariable
2724

2825
from pymc.logprob.transforms import (

0 commit comments

Comments
 (0)