Skip to content
Snippets Groups Projects
Commit 75ea862f authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Try fix mypy no-redef error

parent 3c5a93b4
Branches
1 merge request!438Reduction Support
Pipeline #72173 passed with stages
in 5 minutes and 2 seconds
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment