Files
deepset-ai--haystack/haystack/marshal/__init__.py
Stefano Fiorucci 7570f6b769 fix: re-export symbols in __init__.py files (#9521)
* chore: re-export symbols in __init__.py files

* release note
2025-06-16 16:29:08 +02:00

17 lines
517 B
Python

# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# SPDX-License-Identifier: Apache-2.0
import sys
from typing import TYPE_CHECKING
from lazy_imports import LazyImporter
_import_structure = {"protocol": ["Marshaller"], "yaml": ["YamlMarshaller"]}
if TYPE_CHECKING:
from .protocol import Marshaller as Marshaller
from .yaml import YamlMarshaller as YamlMarshaller
else:
sys.modules[__name__] = LazyImporter(name=__name__, module_file=__file__, import_structure=_import_structure)