From d2fabc91c0868bdf0438111e0865f5cb62e181f3 Mon Sep 17 00:00:00 2001 From: Alessio Sclocco Date: Fri, 7 Jun 2024 14:41:41 +0200 Subject: [PATCH] Fix two SonarCloud warnings. --- kernel_tuner/utils/directives.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel_tuner/utils/directives.py b/kernel_tuner/utils/directives.py index 2c961a78..0dad09ca 100644 --- a/kernel_tuner/utils/directives.py +++ b/kernel_tuner/utils/directives.py @@ -48,7 +48,7 @@ def __init__(self, directive: Directive, lang: Language): self.language = lang -class ArraySize: +class ArraySize(object): """Size of an array""" def __init__(self): @@ -83,6 +83,7 @@ def add(self, dim: int) -> None: def fortran_md_size(size: ArraySize) -> list: + """Format a multidimensional size into the correct Fortran string""" md_size = list() for dim in size: md_size.append(f":{dim}")