Pacify pylint

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2022-11-10 09:15:21 +01:00
parent 35af02171d
commit b9b9026c53
2 changed files with 2 additions and 4 deletions

View File

@ -14,9 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import itertools
import typing
from abc import abstractmethod
from typing import Iterator, List, Tuple, TypeVar
@ -42,7 +39,7 @@ def hex_to_int(val: str) -> int:
This is a superset of what is accepted by mbedtls_test_read_mpi_core().
"""
if val == '' or val == '-':
if val in ['', '-']:
return 0
return int(val, 16)

View File

@ -85,6 +85,7 @@ class BignumOperation(bignum_common.OperationCommon, BignumTarget, metaclass=ABC
]
def description_suffix(self) -> str:
#pylint: disable=no-self-use # derived classes need self
"""Text to add at the end of the test case description."""
return ""