Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Depetrol committed Sep 27, 2024
1 parent 9e804d2 commit 0911b10
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ private static String generatePythonClassInstantiation(
boolean hasBankIndexParameter = false;
for (ParameterInstance param : instance.parameters) {
if (param.getName().equals("bank_index")) {
hasBankIndexParameter = true;
if (param.getOverride() != null) hasBankIndexParameter = true;
else continue; // Skip bank_index if it is not explicitly set
}
code.pr(
"_"
Expand Down

0 comments on commit 0911b10

Please sign in to comment.