There was an error while loading. Please reload this page.
1 parent c01afa7 commit 8bf20b8Copy full SHA for 8bf20b8
1 file changed
examples/image_dataloading.py
@@ -32,6 +32,8 @@
32
33
# pyre-strict
34
35
+from __future__ import annotations
36
+
37
import argparse
38
import logging
39
import signal
@@ -42,6 +44,7 @@
42
44
from functools import partial
43
45
from pathlib import Path
46
from threading import Event
47
+from types import FrameType
48
49
import spdl.io
50
import spdl.io.utils
@@ -222,7 +225,7 @@ def worker_entrypoint(args_: list[str]) -> PerfResult:
222
225
223
226
ev: Event = Event()
224
227
- def handler_stop_signals(_signum, _frame) -> None:
228
+ def handler_stop_signals(_signum: int, _frame: FrameType | None) -> None:
229
ev.set()
230
231
signal.signal(signal.SIGTERM, handler_stop_signals)
0 commit comments