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

deepset-ai / haystack / 13705756478

06 Mar 2025 06:36PM UTC coverage: 89.949% (-0.01%) from 89.961%
13705756478

Pull #8994

github

web-flow
Merge 942d98660 into c03705258
Pull Request #8994: fix: cleaning up `InMemoryDocumentStore` executor when created inside the class

9683 of 10765 relevant lines covered (89.95%)

0.9 hits per line

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

37.5
haystack/utils/__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
    "auth": ["Secret", "deserialize_secrets_inplace"],
12
    "callable_serialization": ["deserialize_callable", "serialize_callable"],
13
    "device": ["ComponentDevice", "Device", "DeviceMap", "DeviceType"],
14
    "docstore_deserialization": ["deserialize_document_store_in_init_params_inplace"],
15
    "filters": ["document_matches_filter", "raise_on_invalid_filter_syntax"],
16
    "jinja2_extensions": ["Jinja2TimeExtension"],
17
    "jupyter": ["is_in_jupyter"],
18
    "misc": ["expit", "expand_page_range"],
19
    "requests_utils": ["request_with_retry"],
20
    "type_serialization": ["deserialize_type", "serialize_type"],
21
}
22

23
if TYPE_CHECKING:
1✔
24
    from .auth import Secret, deserialize_secrets_inplace
×
25
    from .callable_serialization import deserialize_callable, serialize_callable
×
26
    from .device import ComponentDevice, Device, DeviceMap, DeviceType
×
27
    from .docstore_deserialization import deserialize_document_store_in_init_params_inplace
×
28
    from .filters import document_matches_filter, raise_on_invalid_filter_syntax
×
29
    from .jinja2_extensions import Jinja2TimeExtension
×
30
    from .jupyter import is_in_jupyter
×
31
    from .misc import expand_page_range, expit
×
32
    from .requests_utils import request_with_retry
×
33
    from .type_serialization import deserialize_type, serialize_type
×
34

35
else:
36
    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