Skip to content

Commit

Permalink
Fix two SonarCloud warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
isazi committed Jun 7, 2024
1 parent 189e47a commit d2fabc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel_tuner/utils/directives.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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}")
Expand Down

0 comments on commit d2fabc9

Please sign in to comment.