mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 18:41:54 +08:00
new typing style
This commit is contained in:
@@ -24,9 +24,6 @@ import os
|
||||
import signal
|
||||
import time
|
||||
|
||||
from typing import List
|
||||
from typing import Optional
|
||||
|
||||
import psutil
|
||||
|
||||
from ...logging import get_logger
|
||||
@@ -74,7 +71,7 @@ def _remove_sockets(config: Section) -> None:
|
||||
|
||||
|
||||
# =====
|
||||
def main(argv: Optional[List[str]]=None) -> None:
|
||||
def main(argv: (list[str] | None)=None) -> None:
|
||||
config = init(
|
||||
prog="kvmd-cleanup",
|
||||
description="Kill KVMD and clear resources",
|
||||
|
||||
Reference in New Issue
Block a user