Skip to content

Commit

Permalink
remove trailing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
MOmarMiraj committed Nov 7, 2024
1 parent 7184b52 commit a251db1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions core/data/tests/can_generate_bare_string_enum/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class Colors(Enum):
RED = "Red",
BLUE = "Blue",
RED = "Red"
BLUE = "Blue"
GREEN = "Green"

4 changes: 2 additions & 2 deletions core/data/tests/can_generate_simple_enum/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class Colors(Enum):
RED = "Red",
BLUE = "Blue",
RED = "Red"
BLUE = "Blue"
GREEN = "Green"

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class Colors(Enum):
RED = "red",
BLUE = "blue",
RED = "red"
BLUE = "blue"
GREEN = "green-like"

4 changes: 2 additions & 2 deletions core/data/tests/test_simple_enum_case_name_support/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class Colors(Enum):
RED = "red",
BLUE = "blue-ish",
RED = "red"
BLUE = "blue-ish"
GREEN = "Green"

2 changes: 1 addition & 1 deletion core/src/language/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ impl Language for Python {
)
})
.collect::<Vec<String>>()
.join(",\n")
.join("\n")
};
writeln!(w, "{fields}\n")?;
}
Expand Down

0 comments on commit a251db1

Please sign in to comment.