def isActive(self):
        """Returns True if the order is active."""
        return [Order.State.CANCELED, Order.State.FILLED] not in self.__state
dataset/ETHPy150Open gbeced/pyalgotrade/pyalgotrade/broker/__init__.py/Order.isActive/swapped operands of `not in`