From c442f6a3d698770b8d05ec3f8c52120b97f898d4 Mon Sep 17 00:00:00 2001 From: Werner Lewis Date: Wed, 20 Jul 2022 14:13:44 +0100 Subject: [PATCH] Fix type issues Signed-off-by: Werner Lewis --- tests/scripts/generate_bignum_tests.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/scripts/generate_bignum_tests.py b/tests/scripts/generate_bignum_tests.py index 72a10616f7..e15261500c 100755 --- a/tests/scripts/generate_bignum_tests.py +++ b/tests/scripts/generate_bignum_tests.py @@ -26,7 +26,7 @@ import os import posixpath import re import sys -from typing import Iterable, Iterator, Optional, Tuple, TypeVar +from typing import Iterable, Iterator, List, Optional, Tuple, TypeVar import scripts_path # pylint: disable=unused-import from mbedtls_dev import build_tree @@ -52,16 +52,16 @@ class BaseTarget: title: Description of the test function/purpose. """ count = 0 - desc = None - func = None + desc = "" + func = "" gen_file = "" - title = None + title = "" def __init__(self) -> None: type(self).count += 1 @property - def args(self) -> Iterable[str]: + def args(self) -> List[str]: """Create list of arguments for test case.""" return [] @@ -105,8 +105,8 @@ class BignumOperation(BignumTarget): "", "0", "7b", "-7b", "0000000000000000123", "-0000000000000000123", "1230000000000000000", "-1230000000000000000" - ] - input_cases = [] + ] # type: List[str] + input_cases = [] # type: List[Tuple[str, ...]] def __init__(self, val_l: str, val_r: str) -> None: super().__init__()