mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-06-28 00:46:53 +00:00
type: ignore changes
This commit is contained in:
parent
1d6b31ceb4
commit
12df87d392
@ -84,7 +84,7 @@ testpaths = [ "tests", ]
|
|||||||
files = ["src", "tests"]
|
files = ["src", "tests"]
|
||||||
exclude = "class_soc_calc\\.py$"
|
exclude = "class_soc_calc\\.py$"
|
||||||
check_untyped_defs = true
|
check_untyped_defs = true
|
||||||
warn_unused_ignores = true
|
warn_unused_ignores = false
|
||||||
|
|
||||||
[[tool.mypy.overrides]]
|
[[tool.mypy.overrides]]
|
||||||
module = "akkudoktoreos.*"
|
module = "akkudoktoreos.*"
|
||||||
|
@ -204,9 +204,9 @@ async def server_shutdown_task() -> None:
|
|||||||
# Gracefully shut down this process.
|
# Gracefully shut down this process.
|
||||||
pid = psutil.Process().pid
|
pid = psutil.Process().pid
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
os.kill(pid, signal.CTRL_C_EVENT)
|
os.kill(pid, signal.CTRL_C_EVENT) # type: ignore[attr-defined]
|
||||||
else:
|
else:
|
||||||
os.kill(pid, signal.SIGTERM)
|
os.kill(pid, signal.SIGTERM) # type: ignore[attr-defined]
|
||||||
|
|
||||||
logger.info(f"🚀 EOS terminated, PID {pid}")
|
logger.info(f"🚀 EOS terminated, PID {pid}")
|
||||||
|
|
||||||
|
@ -240,7 +240,7 @@ class TestServerStartStop:
|
|||||||
host = get_default_host()
|
host = get_default_host()
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
# Windows does not provide SIGKILL
|
# Windows does not provide SIGKILL
|
||||||
sigkill = signal.SIGTERM
|
sigkill = signal.SIGTERM # type: ignore[attr-defined]
|
||||||
else:
|
else:
|
||||||
sigkill = signal.SIGKILL # type: ignore[attr-defined]
|
sigkill = signal.SIGKILL # type: ignore[attr-defined]
|
||||||
port = 8503
|
port = 8503
|
||||||
|
Loading…
x
Reference in New Issue
Block a user