new typing style

This commit is contained in:
Maxim Devaev
2022-09-04 18:08:40 +03:00
parent 4b75221e94
commit ee3e224e39
129 changed files with 593 additions and 941 deletions

View File

@@ -20,7 +20,6 @@
# ========================================================================== #
from typing import List
from typing import Any
import pytest
@@ -168,7 +167,7 @@ def test_fail__valid_port(arg: Any) -> None:
("80,443,443,", [80, 443, 443]),
(65535, [65535]),
])
def test_ok__valid_ports_list(arg: Any, retval: List[int]) -> None:
def test_ok__valid_ports_list(arg: Any, retval: list[int]) -> None:
assert valid_ports_list(arg) == retval