From 12df87d39299ae46eecba9866641340dc604eaa3 Mon Sep 17 00:00:00 2001 From: NormannK Date: Sun, 16 Feb 2025 16:17:44 +0100 Subject: [PATCH] type: ignore changes --- pyproject.toml | 2 +- src/akkudoktoreos/server/eos.py | 4 ++-- tests/test_server.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0c5df87..8d31dbc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -84,7 +84,7 @@ testpaths = [ "tests", ] files = ["src", "tests"] exclude = "class_soc_calc\\.py$" check_untyped_defs = true -warn_unused_ignores = true +warn_unused_ignores = false [[tool.mypy.overrides]] module = "akkudoktoreos.*" diff --git a/src/akkudoktoreos/server/eos.py b/src/akkudoktoreos/server/eos.py index 24ce1af..389af37 100755 --- a/src/akkudoktoreos/server/eos.py +++ b/src/akkudoktoreos/server/eos.py @@ -204,9 +204,9 @@ async def server_shutdown_task() -> None: # Gracefully shut down this process. pid = psutil.Process().pid if os.name == "nt": - os.kill(pid, signal.CTRL_C_EVENT) + os.kill(pid, signal.CTRL_C_EVENT) # type: ignore[attr-defined] else: - os.kill(pid, signal.SIGTERM) + os.kill(pid, signal.SIGTERM) # type: ignore[attr-defined] logger.info(f"🚀 EOS terminated, PID {pid}") diff --git a/tests/test_server.py b/tests/test_server.py index 3741d35..a77abf8 100644 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -240,7 +240,7 @@ class TestServerStartStop: host = get_default_host() if os.name == "nt": # Windows does not provide SIGKILL - sigkill = signal.SIGTERM + sigkill = signal.SIGTERM # type: ignore[attr-defined] else: sigkill = signal.SIGKILL # type: ignore[attr-defined] port = 8503