Skip to content

Commit

Permalink
Update PythonTranslator.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ryn5 committed Jan 10, 2024
1 parent ef78b7f commit 31aa6cf
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ protected String getSyntax(final VertexProperty.Cardinality o) {

@Override
protected String getSyntax(final Pick o) {
if (o.equals(Pick.any)) {
// Translates to Pick.any_ due to any() being a built-in function in Python.
return "Pick.any_";
}
return "Pick." + resolveSymbol(o.toString());
}

Expand Down

0 comments on commit 31aa6cf

Please sign in to comment.