From 632ea9e6a8130ad85a54ff414fe54517fde9e54a Mon Sep 17 00:00:00 2001 From: Vyacheslav Tamarin Date: Tue, 13 Dec 2022 12:59:09 +0300 Subject: [PATCH] Fix function name in codegen for mypy --- .../utbot/python/framework/codegen/model/PythonCodeGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utbot-python/src/main/kotlin/org/utbot/python/framework/codegen/model/PythonCodeGenerator.kt b/utbot-python/src/main/kotlin/org/utbot/python/framework/codegen/model/PythonCodeGenerator.kt index 9b5ca12f6c..ec4694f3e5 100644 --- a/utbot-python/src/main/kotlin/org/utbot/python/framework/codegen/model/PythonCodeGenerator.kt +++ b/utbot-python/src/main/kotlin/org/utbot/python/framework/codegen/model/PythonCodeGenerator.kt @@ -193,7 +193,7 @@ class PythonCodeGenerator( } val functionPrefix = "__mypy_check" - val functionName = "def ${functionPrefix}_{method.name}(${parameters.joinToString(", ")}):" // TODO: in future can be "async def" + val functionName = "def ${functionPrefix}_${method.name}(${parameters.joinToString(", ")}):" // TODO: in future can be "async def" val mypyCheckCode = listOf( renderer.toString(),