timefold-solver
timefold-solver copied to clipboard
jpyinterpreter - Automatic cast to bool for Predicate
If jpyinterpreter detects a non-bool value is being returned in a Predicate, it should automatically cast it to bool.
This is to allow int/object logics in filters (i.e. filter(lambda x: x & 1)), which is allowed in Python, less so in Java.