Skip to content

Commit 610d9d4

Browse files
committed
fix action error: add string literals
1 parent b87129d commit 610d9d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chebai/loss/semantic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ class DisjointLoss(ImplicationLoss):
342342
def __init__(
343343
self,
344344
path_to_disjointness: str,
345-
data_extractor: Union[_ChEBIDataExtractor, LabeledUnlabeledMixed],
345+
data_extractor: Union[_ChEBIDataExtractor, "LabeledUnlabeledMixed"],
346346
base_loss: torch.nn.Module = None,
347347
disjoint_loss_weight: float = 100,
348348
**kwargs,

chebai/preprocessing/structures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class XYMolData(XYData):
121121
kwargs: Additional fields to store in the dataset.
122122
"""
123123

124-
def to_x(self, device: torch.device) -> Tuple[nx.Graph, ...]:
124+
def to_x(self, device: torch.device) -> Tuple["nx.Graph", ...]:
125125
"""
126126
Moves the node attributes of the molecular graphs to the specified device.
127127

0 commit comments

Comments
 (0)