Skip to content

Commit 9c52a52

Browse files
committed
linting
1 parent 3c415d2 commit 9c52a52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/test_eye.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from itertools import product
22

33
import pytest
4-
import torch
54
from torch_sparse.tensor import SparseTensor
65

76
from .utils import dtypes, devices

torch_sparse/tensor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ def to_dense(self, dtype: Optional[int] = None) -> torch.Tensor:
397397

398398
return mat
399399

400-
def to_torch_sparse_coo_tensor(self, dtype: Optional[int] = None):
400+
def to_torch_sparse_coo_tensor(
401+
self, dtype: Optional[int] = None) -> torch.Tensor:
401402
row, col, value = self.coo()
402403
index = torch.stack([row, col], dim=0)
403404

0 commit comments

Comments
 (0)