Skip to content

Commit

Permalink
chore: change init class function name to initialize_
Browse files Browse the repository at this point in the history
  • Loading branch information
Yazawazi committed Nov 28, 2023
1 parent a7bb606 commit d238e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/funix/decorator/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def visit_FunctionDef(self, node: FunctionDef) -> Any:
# new_module.body[0].decorator_list[0].keywords = [
# keyword(arg="title", value=Constant(value=self._cls_name))
# ]
new_module.body[0].name = "new_" + self._cls_name
new_module.body[0].name = "initialize_" + self._cls_name
new_module.body[0].body = [
Expr(
value=Call(
Expand Down

0 comments on commit d238e3d

Please sign in to comment.