From 75ea862f50d5372126d1a934b4b1e15ba3dc8c85 Mon Sep 17 00:00:00 2001 From: zy69guqi <richard.angersbach@fau.de> Date: Fri, 17 Jan 2025 15:06:57 +0100 Subject: [PATCH] Try fix mypy no-redef error --- src/pystencils/backend/platforms/generic_cpu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pystencils/backend/platforms/generic_cpu.py b/src/pystencils/backend/platforms/generic_cpu.py index e1a34564d..3deb03329 100644 --- a/src/pystencils/backend/platforms/generic_cpu.py +++ b/src/pystencils/backend/platforms/generic_cpu.py @@ -63,12 +63,12 @@ class GenericCpu(Platform): arg_types = (dtype,) * func.num_args if isinstance(dtype, PsScalarType) and func in (NumericLimitsFunctions.Min, NumericLimitsFunctions.Max): + cfunc: CFunction cfunc = CFunction(f"{dtype.c_string()}_{func.function_name}".capitalize(), arg_types, dtype) call.function = cfunc return call if isinstance(dtype, PsIeeeFloatType) and dtype.width in (32, 64): - cfunc: CFunction match func: case ( MathFunctions.Exp -- GitLab