mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
fix: type comparisons should use is
This commit is contained in:
parent
5376ae25e2
commit
c9fc2efdd7
1 changed files with 2 additions and 2 deletions
|
@ -111,9 +111,9 @@ class EditBlockFunctionCoder(Coder):
|
||||||
updated = get_arg(edit, "updated_lines")
|
updated = get_arg(edit, "updated_lines")
|
||||||
|
|
||||||
# gpt-3.5 returns lists even when instructed to return a string!
|
# gpt-3.5 returns lists even when instructed to return a string!
|
||||||
if self.code_format == "list" or type(original) == list:
|
if self.code_format == "list" or type(original) is list:
|
||||||
original = "\n".join(original)
|
original = "\n".join(original)
|
||||||
if self.code_format == "list" or type(updated) == list:
|
if self.code_format == "list" or type(updated) is list:
|
||||||
updated = "\n".join(updated)
|
updated = "\n".join(updated)
|
||||||
|
|
||||||
if original and not original.endswith("\n"):
|
if original and not original.endswith("\n"):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue