From 25d79a9ac88058667e8e4dbb314772bdfab3b2b1 Mon Sep 17 00:00:00 2001 From: clavedeluna Date: Thu, 22 Feb 2024 08:22:25 -0300 Subject: [PATCH] make dedent=False --- src/core_codemods/django_model_without_dunder_str.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_codemods/django_model_without_dunder_str.py b/src/core_codemods/django_model_without_dunder_str.py index d0ff0abc..c65d6c5b 100644 --- a/src/core_codemods/django_model_without_dunder_str.py +++ b/src/core_codemods/django_model_without_dunder_str.py @@ -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()])]),