79564333

Date: 2025-04-09 12:29:58
Score: 1
Natty:
Report link
import signal
from types import FrameType
from typing import Optional

class someclass:
    def handler(self, signum: int, frame: Optional[FrameType]) -> None:
        print(f"Received signal {signum}")

    def __init__(self) -> None:
        signal.signal(signal.SIGINT, self.handler)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gabriel