mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 11:01:53 +08:00
new typing style
This commit is contained in:
@@ -24,9 +24,6 @@ import argparse
|
||||
import errno
|
||||
import time
|
||||
|
||||
from typing import List
|
||||
from typing import Optional
|
||||
|
||||
from ...logging import get_logger
|
||||
|
||||
from ...yamlconf import Section
|
||||
@@ -104,7 +101,7 @@ def _cmd_cancel(config: Section) -> None:
|
||||
|
||||
|
||||
# =====
|
||||
def main(argv: Optional[List[str]]=None) -> None:
|
||||
def main(argv: (list[str] | None)=None) -> None:
|
||||
(parent_parser, argv, config) = init(add_help=False, argv=argv)
|
||||
parser = argparse.ArgumentParser(
|
||||
prog="kvmd-watchdog",
|
||||
|
||||
Reference in New Issue
Block a user