mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +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")
|
||||
|
||||
# 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)
|
||||
if self.code_format == "list" or type(updated) == list:
|
||||
if self.code_format == "list" or type(updated) is list:
|
||||
updated = "\n".join(updated)
|
||||
|
||||
if original and not original.endswith("\n"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue