Autogenerated type safety parameterisation of all methods

This commit is contained in:
Ian Renton
2026-09-20 20:02:19 +01:00
parent 6037e742cc
commit 324dd1414b
132 changed files with 1228 additions and 706 deletions
+4 -1
View File
@@ -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.