Skip to content
Snippets Groups Projects
Commit 1eb914fb authored by Jammer, Tim's avatar Jammer, Tim
Browse files

fix warnings about unexpected types

parent 2e9823d8
No related branches found
No related tags found
1 merge request!9Infrastructure: Type Hints, Instruction class and lists of instructions
......@@ -8,7 +8,7 @@ from scripts.Infrastructure.AllocCall import AllocCall, get_free
class CorrectParameterFactory:
# default params
buf_size = 10
buf_size = "10"
dtype = ['int', 'MPI_INT']
buf_size_bytes = f"{buf_size}*sizeof({dtype[0]})"
tag = 0
......
#! /usr/bin/python3
from __future__ import annotations
import inspect
import os
import importlib
import importlib.util
import subprocess
import typing
from pathlib import Path
# for printing a nice progress bar
import tqdm
......@@ -65,8 +69,8 @@ class GeneratorManager:
return case_name + "-" + str(num).zfill(digits_to_use) + suffix
def generate(self, outpath, filterlist_=None, print_progress_bar=True, overwrite=True, generate_full_set=False,
try_compile=False, max_mpi_version=4.0, use_clang_format=True):
def generate(self, outpath: str | Path | os.PathLike[str], filterlist_:typing.Sequence[str]=None, print_progress_bar:bool=True, overwrite:bool=True, generate_full_set:bool=False,
try_compile:bool=False, max_mpi_version:str="4.0", use_clang_format:bool=True):
"""
Generates test cases based on the specified parameters.
Parameters:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment