Skip to content

Commit

Permalink
make dedent=False
Browse files Browse the repository at this point in the history
  • Loading branch information
clavedeluna committed Feb 28, 2024
1 parent 233ada2 commit 25d79a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core_codemods/django_model_without_dunder_str.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def leave_ClassDef(
self.report_change(original_node)

dunder_str = cst.FunctionDef(
leading_lines=[cst.EmptyLine()],
leading_lines=[cst.EmptyLine(indent=False)],
name=cst.Name("__str__"),
params=cst.Parameters(params=[cst.Param(name=cst.Name("self"))]),
body=cst.IndentedBlock(body=[cst.SimpleStatementLine(body=[cst.Pass()])]),
Expand Down

0 comments on commit 25d79a9

Please sign in to comment.