Skip to content

Commit 1c222c3

Browse files
Remove condition from TensorLike import
1 parent a43886e commit 1c222c3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pytensor/tensor/slinalg.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import typing
33
import warnings
44
from functools import reduce
5-
from typing import TYPE_CHECKING, Literal, cast
5+
from typing import Literal, cast
66

77
import numpy as np
88
import scipy.linalg
@@ -11,7 +11,7 @@
1111
import pytensor.tensor as pt
1212
from pytensor.graph.basic import Apply
1313
from pytensor.graph.op import Op
14-
from pytensor.tensor import as_tensor_variable
14+
from pytensor.tensor import TensorLike, as_tensor_variable
1515
from pytensor.tensor import basic as ptb
1616
from pytensor.tensor import math as ptm
1717
from pytensor.tensor.blockwise import Blockwise
@@ -21,9 +21,6 @@
2121
from pytensor.tensor.variable import TensorVariable
2222

2323

24-
if TYPE_CHECKING:
25-
from pytensor.tensor import TensorLike
26-
2724
logger = logging.getLogger(__name__)
2825

2926

0 commit comments

Comments
 (0)