Skip to content

Commit a0c040f

Browse files
committed
fix: remove redundant import torch under TYPE_CHECKING block
The bare `import torch` statement inside the `if TYPE_CHECKING:` branch was superseded by `from torch import Tensor as TorchTensor` on the following line. Since `TorchTensor` is the only torch symbol referenced in type annotations, the standalone module import is unnecessary and can be dropped without affecting runtime or static-analysis behaviour. Addresses nitpick raised in code review. Signed-off-by: Nithin <kumbam.nithingoud@gmail.com>
1 parent eeb10bc commit a0c040f

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

sdk/python/feast/online_response.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from feast.value_type import ValueType
2626

2727
if TYPE_CHECKING:
28-
import torch
2928
from torch import Tensor as TorchTensor
3029
else:
3130
TorchTensor = Any

0 commit comments

Comments
 (0)