Skip to content

Commit 14741d3

Browse files
author
sfluegel
committed
remove T_co typehint (T_co does not exist for newer torch versions)
1 parent 32a8052 commit 14741d3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

chebai/preprocessing/structures.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import networkx as nx
44
import torch
5-
from torch.utils.data.dataset import T_co
65

76

87
class XYData(torch.utils.data.Dataset):
@@ -23,7 +22,7 @@ def __init__(
2322
self.x = x
2423
self.y = y
2524

26-
def __getitem__(self, index: int) -> T_co:
25+
def __getitem__(self, index: int):
2726
"""Returns the data and target at the given index."""
2827
return self.x[index], self.y[index]
2928

0 commit comments

Comments
 (0)