Skip to content

Commit 72264ad

Browse files
authored
Fix function name in codegen for mypy (#1512)
1 parent d26d257 commit 72264ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utbot-python/src/main/kotlin/org/utbot/python/framework/codegen/model/PythonCodeGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class PythonCodeGenerator(
193193
}
194194

195195
val functionPrefix = "__mypy_check"
196-
val functionName = "def ${functionPrefix}_{method.name}(${parameters.joinToString(", ")}):" // TODO: in future can be "async def"
196+
val functionName = "def ${functionPrefix}_${method.name}(${parameters.joinToString(", ")}):" // TODO: in future can be "async def"
197197

198198
val mypyCheckCode = listOf(
199199
renderer.toString(),

0 commit comments

Comments
 (0)