Skip to content

Commit 50df357

Browse files
committed
return types in quotes
1 parent 9307c56 commit 50df357

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chebifier/prediction_models/electra_predictor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self, model_name: str, ckpt_path: str, **kwargs):
4545
super().__init__(model_name, ckpt_path, reader_cls=ChemDataReader, **kwargs)
4646
print(f"Initialised Electra model {self.model_name} (device: {self.device})")
4747

48-
def init_model(self, ckpt_path: str, **kwargs) -> Electra:
48+
def init_model(self, ckpt_path: str, **kwargs) -> "Electra":
4949
from chebai.models.electra import Electra
5050

5151
model = Electra.load_from_checkpoint(

chebifier/prediction_models/gnn_predictor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def load_class(self, class_path: str):
3333
module = __import__(module_path, fromlist=[class_name])
3434
return getattr(module, class_name)
3535

36-
def init_model(self, ckpt_path: str, **kwargs) -> ResGatedGraphConvNetGraphPred:
36+
def init_model(self, ckpt_path: str, **kwargs) -> "ResGatedGraphConvNetGraphPred":
3737
import torch
3838
from chebai_graph.models.graph import ResGatedGraphConvNetGraphPred
3939

0 commit comments

Comments
 (0)