Skip to content

Commit b671901

Browse files
committed
fix: no . in var names
1 parent be0c855 commit b671901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/codegen/emitmodule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ def emit_module_exec_func(
989989
# Patch async native functions so they're recognized as coroutines
990990
for fn in module.functions:
991991
if fn.decl.is_async and fn.class_name is None:
992-
temp_name = f"{fn.fullname}_temp"
992+
temp_name = f"{fn.fullname.replace(".", "__")}_temp"
993993
emitter.emit_line(
994994
f'PyObject *{temp_name} = PyObject_GetAttrString({module_static}, "{fn.decl.name}");'
995995
)

0 commit comments

Comments
 (0)