def __eq__(self, other):
        return (isinstance(other, self.__class__) and
                other.package == self.package)
def serialize(self, value, display=False):
        if value is True:
            return "true"
        elif value in (False, None):
            return "false"
        else:
            raise ValueError(f"{value!r} is not a boolean")