Files
deepset-ai--haystack/haystack/testing/callable_serialization/random_callable.py
mathislucka 1a91365cc8 fix: callables can be deserialized from fully qualified import path (#8788)
* fix: callables can be deserialized from fully qualified import path

* fix: license header

* fix: format

* fix: types

* fix? types

* test: extend test case

* format

* add release notes
2025-02-03 12:35:37 +01:00

11 lines
255 B
Python

# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# SPDX-License-Identifier: Apache-2.0
def callable_to_deserialize(hello: str) -> str:
"""
A function to test callable deserialization.
"""
return f"{hello}, world!"