Skip to content

Commit 9b0ef2d

Browse files
committed
linter
1 parent 9709235 commit 9b0ef2d

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

src/litmodels/io/cloud.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,11 @@
22
# Licensed under the Apache License, Version 2.0 (the "License");
33
# http://www.apache.org/licenses/LICENSE-2.0
44
#
5-
from typing import TYPE_CHECKING, Optional, Tuple
5+
from typing import Optional, Tuple
66

77
from lightning_sdk.api.teamspace_api import UploadedModelInfo
88
from lightning_sdk.teamspace import Teamspace
99
from lightning_sdk.utils import resolve as sdk_resolvers
10-
from lightning_utilities import module_available
11-
12-
if TYPE_CHECKING:
13-
pass
14-
15-
if module_available("torch"):
16-
pass
17-
else:
18-
torch = None
1910

2011
# if module_available("lightning"):
2112
# from lightning import LightningModule

src/litmodels/io/gateway.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@
44
from typing import Optional, Union
55

66
from lightning_sdk.api.teamspace_api import UploadedModelInfo
7+
from lightning_utilities import module_available
78
from torch.nn import Module
89

9-
from litmodels.io.cloud import download_model_file, torch, upload_model_files
10+
from litmodels.io.cloud import download_model_file, upload_model_files
11+
12+
if module_available("torch"):
13+
import torch
14+
else:
15+
torch = None
1016

1117

1218
def upload_model(

0 commit comments

Comments
 (0)