Skip to content

Commit 9df3962

Browse files
committed
Set the name and qualname of the function
1 parent 11645a1 commit 9df3962

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

monic/expressions/interpreter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,6 +1670,10 @@ def visit_FunctionDef(
16701670
required_count=required_count,
16711671
)
16721672

1673+
# Set the name and qualname of the function
1674+
func.__name__ = node.name
1675+
func.__qualname__ = node.name
1676+
16731677
# Apply decorators in reverse order
16741678
for decorator in reversed(node.decorator_list):
16751679
decorator_func = self.visit(decorator)

0 commit comments

Comments
 (0)