/ haystack / testing / callable_serialization / random_callable.py
random_callable.py
 1  # SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
 2  #
 3  # SPDX-License-Identifier: Apache-2.0
 4  
 5  
 6  def callable_to_deserialize(hello: str) -> str:
 7      """
 8      A function to test callable deserialization.
 9      """
10      return f"{hello}, world!"