Skip to content

Commit 2704e66

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.
1 parent 7c270d6 commit 2704e66

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)