From ee3e224e396494cd0d69bb6167087a071a20349c Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sun, 4 Sep 2022 18:08:40 +0300 Subject: new typing style --- kvmd/apps/edidconf/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'kvmd/apps/edidconf/__init__.py') diff --git a/kvmd/apps/edidconf/__init__.py b/kvmd/apps/edidconf/__init__.py index 53edf5fd..e6dcc610 100644 --- a/kvmd/apps/edidconf/__init__.py +++ b/kvmd/apps/edidconf/__init__.py @@ -28,11 +28,9 @@ import contextlib import argparse import time -from typing import List from typing import IO from typing import Generator from typing import Callable -from typing import Optional from ...validators.basic import valid_bool from ...validators.basic import valid_int_f0 @@ -180,7 +178,7 @@ def _make_format_hex(size: int) -> Callable[[int], str]: # ===== -def main(argv: Optional[List[str]]=None) -> None: # pylint: disable=too-many-branches +def main(argv: (list[str] | None)=None) -> None: # pylint: disable=too-many-branches # (parent_parser, argv, _) = init( # add_help=False, # argv=argv, -- cgit v1.2.3