• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

deepset-ai / haystack / 14105518967

27 Mar 2025 11:31AM UTC coverage: 90.167%. Remained the same
14105518967

Pull #9121

github

web-flow
Merge 035a83e22 into 54743964f
Pull Request #9121: test: temporarily skip `test_to_mermaid_image` integration test

9977 of 11065 relevant lines covered (90.17%)

0.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
haystack/dataclasses/__init__.py
1
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
2
#
3
# SPDX-License-Identifier: Apache-2.0
4

5
import sys
1✔
6
from typing import TYPE_CHECKING
1✔
7

8
from lazy_imports import LazyImporter
1✔
9

10
_import_structure = {
1✔
11
    "answer": ["Answer", "ExtractedAnswer", "GeneratedAnswer"],
12
    "byte_stream": ["ByteStream"],
13
    "chat_message": ["ChatMessage", "ChatRole", "TextContent", "ToolCall", "ToolCallResult"],
14
    "document": ["Document"],
15
    "sparse_embedding": ["SparseEmbedding"],
16
    "streaming_chunk": [
17
        "StreamingChunk",
18
        "AsyncStreamingCallbackT",
19
        "StreamingCallbackT",
20
        "SyncStreamingCallbackT",
21
        "select_streaming_callback",
22
    ],
23
}
24

25
if TYPE_CHECKING:
1✔
26
    from .answer import Answer, ExtractedAnswer, GeneratedAnswer
×
27
    from .byte_stream import ByteStream
×
28
    from .chat_message import ChatMessage, ChatRole, TextContent, ToolCall, ToolCallResult
×
29
    from .document import Document
×
30
    from .sparse_embedding import SparseEmbedding
×
31
    from .streaming_chunk import (
×
32
        AsyncStreamingCallbackT,
33
        StreamingCallbackT,
34
        StreamingChunk,
35
        SyncStreamingCallbackT,
36
        select_streaming_callback,
37
    )
38
else:
39
    sys.modules[__name__] = LazyImporter(name=__name__, module_file=__file__, import_structure=_import_structure)
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc