mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-21 14:57:42 +00:00
Autogenerated type safety parameterisation of all methods
This commit is contained in:
+4
-1
@@ -1,8 +1,11 @@
|
||||
# Main script
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
import os
|
||||
import signal
|
||||
import sys
|
||||
from types import FrameType
|
||||
|
||||
from core.cleanup import CLEANUP_TIMER
|
||||
from core.config import LOG_LEVEL, SERVER_OWNER_CALLSIGN, TELNET_SERVER_ENABLED, TELNET_SERVER_PORT
|
||||
@@ -18,7 +21,7 @@ logger = logging.getLogger(__name__)
|
||||
_shutdown_in_progress = False
|
||||
|
||||
|
||||
def shutdown(_signum=None, _frame=None):
|
||||
def shutdown(_signum: int | None = None, _frame: FrameType | None = None) -> None:
|
||||
"""Shutdown function"""
|
||||
|
||||
# Check if this is the second time a shutdown was asked for, if so immediately kill the program.
|
||||
|
||||
Reference in New Issue
Block a user