def compress(self, value): if len(value) > self.min_length: return _compress(value) return value
def compress(self, value: bytes) -> bytes: if len(value) > self.min_length: return _compress(value) return value