Skip to content

Commit 49e3132

Browse files
authored
typing: fix missing (#121)
* typing: fix missing a return type * skipif for DDP
1 parent bbd28a1 commit 49e3132

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/litmodels/io/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import pickle
3+
from collections.abc import Iterator
34
from contextlib import contextmanager
45
from pathlib import Path
56
from typing import Any, Union
@@ -9,7 +10,7 @@
910

1011

1112
@contextmanager
12-
def _suppress_os_stderr():
13+
def _suppress_os_stderr() -> Iterator[None]:
1314
devnull_fd = os.open(os.devnull, os.O_WRONLY)
1415
old_stderr_fd = os.dup(2)
1516
os.dup2(devnull_fd, 2) # redirect stderr (fd 2) to /dev/null

tests/integrations/test_real_cloud.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ def test_lightning_plain_resume(trainer_method, registry, importing, in_studio,
208208
],
209209
)
210210
@pytest.mark.cloud
211+
@pytest.mark.skipif(platform.system() != "Linux", reason="Only Linux is supported for DDP")
211212
def test_lightning_checkpoint_ddp(importing, tmp_path):
212213
if importing == "lightning":
213214
from lightning import Trainer

0 commit comments

Comments
 (0)